Skip to content

Commit

Permalink
replaced io.open with open, since its PY3 anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
arekbulski committed Jan 28, 2020
1 parent 6f8a59a commit 28fe9e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions construct/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def parse_file(self, filename, **contextkw):
r"""
Parse a closed binary file. See parse().
"""
with io.open(filename, 'rb') as f:
with open(filename, 'rb') as f:
return self.parse_stream(f, **contextkw)

def _parsereport(self, stream, context, path):
Expand Down Expand Up @@ -351,7 +351,7 @@ def build_file(self, obj, filename, **contextkw):
r"""
Build an object into a closed binary file. See build().
"""
with io.open(filename, 'wb') as f:
with open(filename, 'wb') as f:
self.build_stream(obj, f, **contextkw)

def _build(self, obj, stream, context, path):
Expand Down

0 comments on commit 28fe9e8

Please sign in to comment.