Revert rev 42617, it was introduced to work around bug #1441397.
test_compiler now passes again.
This commit is contained in:
parent
edd9b0dfb3
commit
afcd838f1f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue