[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 5961e7c156)
This commit is contained in:
Terry Jan Reedy 2017-10-01 19:37:19 -04:00 committed by GitHub
parent c8198c9232
commit c041816045
1 changed files with 2 additions and 2 deletions

View File

@ -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 ''