mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
IDLE: replace if statement with expression (GH-94228)
(cherry picked from commit 91f9947f23)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
251193e7fb
commit
b140e5a4ac
1 changed files with 2 additions and 6 deletions
|
|
@ -13,14 +13,10 @@
|
|||
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…
Add table
Add a link
Reference in a new issue