Sys.stdout.encoding is None, how can I fix it without changing the script?

If I run a python script using a pipeline, the sys.stdout.encoding inside it becomes None and resets it. How can I avoid this without changing the script? I cannot change it for some reason.

+3


source to share





All Articles