Skip to content

Commit 0cd233f

Browse files
committed
Revert previous code elimination, 'filename' is needed.
1 parent 2618c7f commit 0cd233f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Lib/idlelib/ScriptBinding.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, editwin):
5353
self.flist = self.editwin.flist
5454
self.root = self.flist.root
5555

56-
def check_module_event(self, event=None):
56+
def check_module_event(self, event):
5757
filename = self.getfilename()
5858
if not filename:
5959
return
@@ -133,7 +133,12 @@ def run_module_event(self, event):
133133
add that directory to its sys.path if not already included.
134134
135135
"""
136-
code = self.check_module_event(event)
136+
filename = self.getfilename()
137+
if not filename:
138+
return
139+
if not self.tabnanny(filename):
140+
return
141+
code = self.checksyntax(filename)
137142
if not code:
138143
return
139144
shell = self.shell

0 commit comments

Comments
 (0)