summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/FileList.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/FileList.py')
-rw-r--r--Lib/idlelib/FileList.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/FileList.py b/Lib/idlelib/FileList.py
index e01ce3c..7a46afa 100644
--- a/Lib/idlelib/FileList.py
+++ b/Lib/idlelib/FileList.py
@@ -58,8 +58,8 @@ class FileList:
if edit is not None and lineno is not None:
edit.gotoline(lineno)
- def new(self):
- return self.EditorWindow(self)
+ def new(self, filename=None):
+ return self.EditorWindow(self, filename)
def new_callback(self, event):
self.new()