Skip to content

Commit 274c908

Browse files
author
Graylin Kim
committed
Small sc2reader.read bug fix and some cosmetic changes
1 parent 6c3fd1e commit 274c908

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sc2reader/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ class SC2Reader(object):
1414
<<usage documentation here>>
1515
'''
1616

17-
def __init__(self, parse="FULL", directory="", processors=[], debug=False, files=None, verbose=False):
17+
def __init__(self, parse_type="FULL", directory="", processors=[], debug=False, files=[], verbose=False):
1818
try:
1919
#Update and save the reader configuration
20-
parse = parse.upper()
21-
files = FILES.get(parse,files)
22-
processors = PROCESSORS.get(parse,processors)
20+
parse_type = parse_type.upper()
21+
files = FILES.get(parse_type, files)
22+
processors = PROCESSORS.get(parse_type, processors)
2323
self.__dict__.update(locals())
2424
except KeyError:
25-
raise ValueError("Unrecognized parse argument `%s`" % parse)
25+
raise ValueError("Unrecognized parse_type `%s`" % parse_type)
2626

2727
def read(self, location):
2828
if self.directory:

0 commit comments

Comments
 (0)