diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2017-10-01 23:01:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-01 23:01:27 (GMT) |
commit | 5961e7c156f90c7f9444ae95b9d3e55114ca2169 (patch) | |
tree | 4a41d0810375821f4bd0e680f5734d79c2fec2f0 | |
parent | 2102c789035ccacbac4362589402ac68baa2cd29 (diff) | |
download | cpython-5961e7c156f90c7f9444ae95b9d3e55114ca2169.zip cpython-5961e7c156f90c7f9444ae95b9d3e55114ca2169.tar.gz cpython-5961e7c156f90c7f9444ae95b9d3e55114ca2169.tar.bz2 |
IDLE: make filetypes a tuple constant. (#3847)
Save a bit of code, plus non-tuples get converted anyway to tuples by tkinter for the tk call.
-rw-r--r-- | Lib/idlelib/iomenu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/iomenu.py b/Lib/idlelib/iomenu.py index 3414c7b..f9b6907 100644 --- a/Lib/idlelib/iomenu.py +++ b/Lib/idlelib/iomenu.py @@ -487,11 +487,11 @@ class IOBinding: opendialog = None savedialog = None - filetypes = [ + filetypes = ( ("Python files", "*.py *.pyw", "TEXT"), ("Text files", "*.txt", "TEXT"), ("All files", "*"), - ] + ) defaultextension = '.py' if sys.platform == 'darwin' else '' |