summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ScriptBinding.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
-rw-r--r--Lib/idlelib/ScriptBinding.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py
index 8ad02a4..0017d19 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -138,6 +138,8 @@ class ScriptBinding:
filename = self.getfilename()
if not filename:
return
+ if not self.tabnanny(filename):
+ return
code = self.checksyntax(filename)
if not code:
return