Kaydet (Commit) 5961e7c1 authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy Kaydeden (comit) GitHub

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.
üst 2102c789
......@@ -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 ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment