diff options
| author | Kurt B. Kaiser <kbk@shore.net> | 2006-08-10 01:41:17 (GMT) | 
|---|---|---|
| committer | Kurt B. Kaiser <kbk@shore.net> | 2006-08-10 01:41:17 (GMT) | 
| commit | 1fe9ca09a30ec7e81d986ebd3b1acff4d16d5947 (patch) | |
| tree | cfb75c65f54a854b61657626ad6e8a2aee4f1c74 /Lib/idlelib/ScriptBinding.py | |
| parent | 388b3a6ebc6bbcf3a448dcd3e447389ecc41371d (diff) | |
| download | cpython-1fe9ca09a30ec7e81d986ebd3b1acff4d16d5947.zip cpython-1fe9ca09a30ec7e81d986ebd3b1acff4d16d5947.tar.gz cpython-1fe9ca09a30ec7e81d986ebd3b1acff4d16d5947.tar.bz2  | |
Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)
Diffstat (limited to 'Lib/idlelib/ScriptBinding.py')
| -rw-r--r-- | Lib/idlelib/ScriptBinding.py | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py index 878425d..f325ad1 100644 --- a/Lib/idlelib/ScriptBinding.py +++ b/Lib/idlelib/ScriptBinding.py @@ -76,6 +76,9 @@ class ScriptBinding:              self.editwin.gotoline(nag.get_lineno())              self.errorbox("Tab/space error", indent_message)              return False +        except IndentationError: +            # From tokenize(), let compile() in checksyntax find it again. +            pass          return True      def checksyntax(self, filename):  | 
