Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)

This commit is contained in:
Kurt B. Kaiser 2006-08-10 01:41:17 +00:00
parent 388b3a6ebc
commit 1fe9ca09a3
2 changed files with 5 additions and 0 deletions

View file

@ -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):