summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2017-10-01 23:37:19 (GMT)
committerGitHub <noreply@github.com>2017-10-01 23:37:19 (GMT)
commitc0418160457970c4654ad8d910cd0ad21a02f3f7 (patch)
tree59c56acefd4d3363c60b8a8772e2bda73309ff3f /Lib
parentc8198c92320bc35b1e3de5ff0118bd8e20e8d68a (diff)
downloadcpython-c0418160457970c4654ad8d910cd0ad21a02f3f7.zip
cpython-c0418160457970c4654ad8d910cd0ad21a02f3f7.tar.gz
cpython-c0418160457970c4654ad8d910cd0ad21a02f3f7.tar.bz2
[3.6] IDLE: make filetypes a tuple constant. (GH-3847) (#3848)
Save a bit of code, plus non-tuples get converted anyway to tuples by tkinter for the tk call. (cherry picked from commit 5961e7c156f90c7f9444ae95b9d3e55114ca2169)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/iomenu.py4
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 ''