Skip to content

Commit 9d9440e

Browse files
committed
version bump
1 parent 39fe883 commit 9d9440e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@
101101
0.5.3:
102102

103103
* Implemented scandir in listdir if available
104-
104+
* Fix for issue where local.getpreferredencoding returns empty string
105105

106106

fs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
1616
"""
1717

18-
__version__ = "0.5.3a0"
18+
__version__ = "0.5.4a1"
1919
__author__ = "Will McGugan (will@willmcgugan.com)"
2020

2121
# provide these by default so people can use 'fs.path.basename' etc.

fs/iotools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def make_stream(name,
160160

161161
if not binary:
162162
io_object = io.TextIOWrapper(io_object,
163-
encoding=encoding,
163+
encoding=encoding or 'utf-8',
164164
errors=errors,
165165
newline=newline,
166166
line_buffering=line_buffering,)
@@ -170,7 +170,7 @@ def make_stream(name,
170170

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

175175

176176
def make_bytes_io(data, encoding=None, errors=None):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import sys
55
PY3 = sys.version_info >= (3,)
66

7-
VERSION = "0.5.3a0"
7+
VERSION = "0.5.4a1"
88

99
COMMANDS = ['fscat',
1010
'fsinfo',

0 commit comments

Comments
 (0)