summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2005-08-23 03:25:38 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2005-08-23 03:25:38 (GMT)
commit0cd233f4875d042ce74b41e368e6dacbbb47ff45 (patch)
tree63da53c6951bd4ccee2385438ab0d769e623ad06 /Lib/idlelib
parent2618c7fadc756ebd81213423055626411920f379 (diff)
downloadcpython-0cd233f4875d042ce74b41e368e6dacbbb47ff45.zip
cpython-0cd233f4875d042ce74b41e368e6dacbbb47ff45.tar.gz
cpython-0cd233f4875d042ce74b41e368e6dacbbb47ff45.tar.bz2
Revert previous code elimination, 'filename' is needed.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/ScriptBinding.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py
index 16fd14d..084c607 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -53,7 +53,7 @@ class ScriptBinding:
self.flist = self.editwin.flist
self.root = self.flist.root
- def check_module_event(self, event=None):
+ def check_module_event(self, event):
filename = self.getfilename()
if not filename:
return
@@ -133,7 +133,12 @@ class ScriptBinding:
add that directory to its sys.path if not already included.
"""
- code = self.check_module_event(event)
+ filename = self.getfilename()
+ if not filename:
+ return
+ if not self.tabnanny(filename):
+ return
+ code = self.checksyntax(filename)
if not code:
return
shell = self.shell