Patch for an Issue #767

This commit is contained in:
Miroslav Stampar 2014-07-29 13:32:26 +02:00
parent 6c4c82758d
commit 20d75cc52e

View File

@ -161,7 +161,7 @@ def stdoutencode(data):
else: else:
retVal = data.encode(sys.stdout.encoding) retVal = data.encode(sys.stdout.encoding)
except: except:
retVal = data.encode(UNICODE_ENCODING) retVal = data.encode(UNICODE_ENCODING) if isinstance(data, unicode) else data
return retVal return retVal