summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ScriptBinding.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2005-01-19 00:22:59 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2005-01-19 00:22:59 (GMT)
commit6af44986029c84c4c5df62a64c60a6ed978a3693 (patch)
tree2c47318c67e6868b475147069c390e41e918f5e6 /Lib/idlelib/ScriptBinding.py
parent75eabd294441266a77b837b83f34e975d7192d2e (diff)
downloadcpython-6af44986029c84c4c5df62a64c60a6ed978a3693.zip
cpython-6af44986029c84c4c5df62a64c60a6ed978a3693.tar.gz
cpython-6af44986029c84c4c5df62a64c60a6ed978a3693.tar.bz2
1. Polish tabbing code.
2. Restore use of set_indentation_params(), was dead code since Autoindent.py was merged into EditorWindow.py. 3. Make usetabs, indentwidth, tabwidth, context_use_ps1 instance vars and set in EditorWindow.__init__() 4. In PyShell.__init__() set usetabs, indentwidth and context_use_ps1 explicitly (config() is eliminated). 5. Add Tabnanny check when Module is Run/F5, not just when Checked. 6. Discourage using an indent width other than 8 when using tabs to indent Python code. M EditorWindow.py M NEWS.txt M PyShell.py M ScriptBinding.py
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