[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:
parent
c8198c9232
commit
c041816045
|
@ -487,11 +487,11 @@ class IOBinding:
|
||||||
opendialog = None
|
opendialog = None
|
||||||
savedialog = None
|
savedialog = None
|
||||||
|
|
||||||
filetypes = [
|
filetypes = (
|
||||||
("Python files", "*.py *.pyw", "TEXT"),
|
("Python files", "*.py *.pyw", "TEXT"),
|
||||||
("Text files", "*.txt", "TEXT"),
|
("Text files", "*.txt", "TEXT"),
|
||||||
("All files", "*"),
|
("All files", "*"),
|
||||||
]
|
)
|
||||||
|
|
||||||
defaultextension = '.py' if sys.platform == 'darwin' else ''
|
defaultextension = '.py' if sys.platform == 'darwin' else ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue