Revert rev 42617, it was introduced to work around bug #1441397.

test_compiler now passes again.
This commit is contained in:
Georg Brandl 2006-07-29 10:25:46 +00:00
parent edd9b0dfb3
commit afcd838f1f
1 changed files with 0 additions and 7 deletions

View File

@ -23,14 +23,7 @@ class FutureParser:
def visitModule(self, node):
stmt = node.node
found_docstring = False
for s in stmt.nodes:
# Skip over docstrings
if not found_docstring and isinstance(s, ast.Discard) \
and isinstance(s.expr, ast.Const) \
and isinstance(s.expr.value, str):
found_docstring = True
continue
if not self.check_stmt(s):
break