Thanks to visit codestin.com Credit goes to github.com
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.
1 parent f0b234e commit 91f9947Copy full SHA for 91f9947
Lib/idlelib/iomenu.py
@@ -13,14 +13,10 @@
13
from idlelib.util import py_extensions
14
15
py_extensions = ' '.join("*"+ext for ext in py_extensions)
16
-
17
encoding = 'utf-8'
18
-if sys.platform == 'win32':
19
- errors = 'surrogatepass'
20
-else:
21
- errors = 'surrogateescape'
+errors = 'surrogatepass' if sys.platform == 'win32' else 'surrogateescape'
+
22
23
24
class IOBinding:
25
# One instance per editor Window so methods know which to save, close.
26
# Open returns focus to self.editwin if aborted.
0 commit comments