Skip to content

Commit

Permalink
IDLE: replace if statement with expression (pythonGH-94228)
Browse files Browse the repository at this point in the history
(cherry picked from commit 91f9947)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
terryjreedy authored and miss-islington committed Jun 24, 2022
1 parent c966e08 commit d016306
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 d016306

Please sign in to comment.