diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-24 17:30:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 17:30:55 (GMT) |
commit | 14943829a8dfacdf5fc1ef78bb155c0e2ec874a4 (patch) | |
tree | 0e1165a0f0fde4d06df734d3de84a6d07b9c4680 | |
parent | 64892c5e36898082a92d3ab10f235798f53c3ae3 (diff) | |
download | cpython-14943829a8dfacdf5fc1ef78bb155c0e2ec874a4.zip cpython-14943829a8dfacdf5fc1ef78bb155c0e2ec874a4.tar.gz cpython-14943829a8dfacdf5fc1ef78bb155c0e2ec874a4.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. |