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

Skip to content

Commit f7feebe

Browse files
committed
fix for a bug reported by [email protected] (TypeError: encode() takes no keyword arguments)
1 parent 9fc0bed commit f7feebe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def dataToStdout(data, forceOutput=False):
587587
try:
588588
sys.stdout.write(data.encode(sys.stdout.encoding))
589589
except:
590-
sys.stdout.write(data.encode(UNICODE_ENCODING, errors="replace"))
590+
sys.stdout.write(data.encode(UNICODE_ENCODING))
591591
finally:
592592
sys.stdout.flush()
593593

0 commit comments

Comments
 (0)