Commit ea90038e authored by Sasha Z's avatar Sasha Z
Browse files

Refactoring for packaging

parent 77a45bf7
......@@ -5,7 +5,7 @@ Created on Mon Jan 27 16:11:06 2020
@author: az9
"""
from read_storage import BinaryStorage
from sns_rad.binary import ReadStorage
import argparse
from argparse import RawTextHelpFormatter
......@@ -23,7 +23,7 @@ parser.add_argument('--index', '-i', action='append', default=[], type=int,
parser.add_argument('file', help='file to read')
args = parser.parse_args()
file = BinaryStorage(args.file)
file = ReadStorage(args.file)
print(args.file, 'has', len(file), 'records')
......
......@@ -53,7 +53,7 @@ class Writer:
self.file.close()
class BinaryStorage:
class ReadStorage:
def __init__(self, path):
self.file = open(path,'rb')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment