Skip to content

Commit

Permalink
IDLE: replace if statement with expression (#94228)
Browse files Browse the repository at this point in the history
  • Loading branch information
terryjreedy authored Jun 24, 2022
1 parent f0b234e commit 91f9947
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Lib/idlelib/iomenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 91f9947

Please sign in to comment.