mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
IDLE: replace if statement with expression (#94228)
This commit is contained in:
parent
f0b234e6ed
commit
91f9947f23
1 changed files with 2 additions and 6 deletions
|
@ -13,12 +13,8 @@ from idlelib.config import idleConf
|
||||||
from idlelib.util import py_extensions
|
from idlelib.util import py_extensions
|
||||||
|
|
||||||
py_extensions = ' '.join("*"+ext for ext in py_extensions)
|
py_extensions = ' '.join("*"+ext for ext in py_extensions)
|
||||||
|
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
if sys.platform == 'win32':
|
errors = 'surrogatepass' if sys.platform == 'win32' else 'surrogateescape'
|
||||||
errors = 'surrogatepass'
|
|
||||||
else:
|
|
||||||
errors = 'surrogateescape'
|
|
||||||
|
|
||||||
|
|
||||||
class IOBinding:
|
class IOBinding:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue