We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce26642 + bfbbbd6 commit 8eda917Copy full SHA for 8eda917
py/makeqstrdata.py
@@ -17,8 +17,9 @@
17
import gettext
18
import os.path
19
20
-sys.stdout.reconfigure(encoding='utf-8')
21
-sys.stderr.reconfigure(errors='backslashreplace')
+if hasattr(sys.stdout, 'reconfigure'):
+ sys.stdout.reconfigure(encoding='utf-8')
22
+ sys.stderr.reconfigure(errors='backslashreplace')
23
24
py = os.path.dirname(sys.argv[0])
25
top = os.path.dirname(py)
0 commit comments