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 <[email protected]>
  • Loading branch information
miss-islington and terryjreedy authored Jun 24, 2022
1 parent 251193e commit b140e5a
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 b140e5a

Please sign in to comment.