Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20d75cc

Browse files
committed
Patch for an Issue #767
1 parent 6c4c827 commit 20d75cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def stdoutencode(data):
161161
else:
162162
retVal = data.encode(sys.stdout.encoding)
163163
except:
164-
retVal = data.encode(UNICODE_ENCODING)
164+
retVal = data.encode(UNICODE_ENCODING) if isinstance(data, unicode) else data
165165

166166
return retVal
167167

0 commit comments

Comments
 (0)