We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64892c5 commit 1494382Copy full SHA for 1494382
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