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.
find-python-script.py
1 parent cceb6d9 commit b1119d5Copy full SHA for b1119d5
lib/find-python-script.py
@@ -1,11 +1,4 @@
1
-import sys, codecs;
2
-
3
-if (sys.stdout.encoding != "utf-8" and sys.platform == "win32"):
4
- if sys.version_info > (3, 7):
5
- sys.stdout.reconfigure(encoding='utf-8')
6
- print(sys.executable)
7
- else:
8
- sys.stdout = codecs.getwriter("utf8")(sys.stdout)
9
- print(sys.executable.decode("cp1251"))
10
-else:
11
+import sys
+if sys.stdout.encoding != "utf-8" and sys.platform == "win32":
+ sys.stdout.reconfigure(encoding='utf-8')
+print(sys.executable)
0 commit comments