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.
This commit is contained in:
Terry Jan Reedy 2017-10-01 19:01:27 -04:00 committed by GitHub
parent 2102c78903
commit 5961e7c156

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