diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-24 17:30:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 17:30:32 (GMT) |
commit | b140e5a4ac364360a444a760cbb17ab9c165c95f (patch) | |
tree | b7695666c505b9ab483e8dade4560e8f96595097 | |
parent | 251193e7fbb8846daad3d30e76daeacdd1125230 (diff) | |
download | cpython-b140e5a4ac364360a444a760cbb17ab9c165c95f.zip cpython-b140e5a4ac364360a444a760cbb17ab9c165c95f.tar.gz cpython-b140e5a4ac364360a444a760cbb17ab9c165c95f.tar.bz2 |
IDLE: replace if statement with expression (GH-94228)
(cherry picked from commit 91f9947f231cce2c72a3fb7b5c8e8cf49cc2c10f)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-rw-r--r-- | Lib/idlelib/iomenu.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/idlelib/iomenu.py b/Lib/idlelib/iomenu.py index 86ce68c..327e885 100644 --- a/Lib/idlelib/iomenu.py +++ b/Lib/idlelib/iomenu.py @@ -13,14 +13,10 @@ from idlelib.config import idleConf 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. |