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

Skip to content

Commit 50ac3aa

Browse files
committed
Minor patch
1 parent a75d3ed commit 50ac3aa

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
777777
if kb.get("multiThreadMode"):
778778
logging._acquireLock()
779779

780-
if isinstance(data, basestring):
780+
if isinstance(data, unicode):
781781
message = stdoutencode(data)
782782
else:
783783
message = data

lib/core/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def stdoutencode(data):
141141
try:
142142
# Reference: http://bugs.python.org/issue1602
143143
if IS_WIN:
144-
output = data.encode('ascii', "replace")
144+
output = data.encode("ascii", "replace")
145145

146146
if output != data:
147147
warnMsg = "cannot properly display Unicode characters "

0 commit comments

Comments
 (0)