Make tabnanny recognize IndentationErrors raised by tokenize.

Add a test to test_inspect to make sure indented source
is recognized correctly. (fixes #1224621)
This commit is contained in:
Georg Brandl 2006-08-14 21:34:08 +00:00
parent 26a07b5198
commit 2463f8f831
4 changed files with 18 additions and 1 deletions

View file

@ -88,3 +88,12 @@ extra85 = 'stop'
def func88():
# comment
return 90
# line 92
def f():
class X:
def g():
"doc"
return 42
return X
method_in_dynamic_class = f().g.im_func