mirror of https://github.com/python/cpython
IDLE: replace if statement with expression (#94228)
This commit is contained in:
parent
f0b234e6ed
commit
91f9947f23
|
@ -13,14 +13,10 @@ from idlelib.config import idleConf
|
|||
from idlelib.util import py_extensions
|
||||
|
||||
py_extensions = ' '.join("*"+ext for ext in py_extensions)
|
||||
|
||||
encoding = 'utf-8'
|
||||
if sys.platform == 'win32':
|
||||
errors = 'surrogatepass'
|
||||
else:
|
||||
errors = 'surrogateescape'
|
||||
errors = 'surrogatepass' if sys.platform == 'win32' else 'surrogateescape'
|
||||
|
||||
|
||||
|
||||
class IOBinding:
|
||||
# One instance per editor Window so methods know which to save, close.
|
||||
# Open returns focus to self.editwin if aborted.
|
||||
|
|
Loading…
Reference in New Issue