Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 7, 2015
1 parent 39fe883 commit 9d9440e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@
0.5.3:

* Implemented scandir in listdir if available

* Fix for issue where local.getpreferredencoding returns empty string


2 changes: 1 addition & 1 deletion fs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""

__version__ = "0.5.3a0"
__version__ = "0.5.4a1"
__author__ = "Will McGugan ([email protected])"

# provide these by default so people can use 'fs.path.basename' etc.
Expand Down
4 changes: 2 additions & 2 deletions fs/iotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def make_stream(name,

if not binary:
io_object = io.TextIOWrapper(io_object,
encoding=encoding,
encoding=encoding or 'utf-8',
errors=errors,
newline=newline,
line_buffering=line_buffering,)
Expand All @@ -170,7 +170,7 @@ def make_stream(name,

def decode_binary(data, encoding=None, errors=None, newline=None):
"""Decode bytes as though read from a text file"""
return io.TextIOWrapper(io.BytesIO(data), encoding=encoding, errors=errors, newline=newline).read()
return io.TextIOWrapper(io.BytesIO(data), encoding=encoding or 'utf-8', errors=errors, newline=newline).read()


def make_bytes_io(data, encoding=None, errors=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys
PY3 = sys.version_info >= (3,)

VERSION = "0.5.3a0"
VERSION = "0.5.4a1"

COMMANDS = ['fscat',
'fsinfo',
Expand Down

0 comments on commit 9d9440e

Please sign in to comment.