8000
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 251193e commit b140e5aCopy full SHA for b140e5a
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