Skip to content

Commit 300eb99

Browse files
committed
Add the read_file method on the sc2reader package.
Now the interface is again consistent with the class interface.
1 parent 65dee8b commit 300eb99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sc2reader/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ def read_file(self, file, **options):
167167
"""
168168
__defaultReader = Reader()
169169

170+
def read_file(location, **user_options):
171+
return __defaultReader.read_file(location, **user_options)
172+
170173
def read(location, **user_options):
171174
return __defaultReader.read(location, **user_options)
172175

0 commit comments

Comments
 (0)