Skip to content

Commit

Permalink
win encoding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Dec 6, 2016
1 parent 05dbb25 commit beb6ce1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/iotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def make_stream(name,
reading = True
writing = True

encoding = None if binary else (encoding or 'utf-8')

io_object = RawWrapper(bin_file, mode=mode, name=name)
if buffering >= 0:
if reading and writing:
Expand Down

0 comments on commit beb6ce1

Please sign in to comment.