mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
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
1 changed files with 0 additions and 7 deletions
|
@ -23,14 +23,7 @@ class FutureParser:
|
||||||
|
|
||||||
def visitModule(self, node):
|
def visitModule(self, node):
|
||||||
stmt = node.node
|
stmt = node.node
|
||||||
found_docstring = False
|
|
||||||
for s in stmt.nodes:
|
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):
|
if not self.check_stmt(s):
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue