summaryrefslogtreecommitdiffstats
path: root/Lib/compiler
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-07-29 10:25:46 (GMT)
committerGeorg Brandl <georg@python.org>2006-07-29 10:25:46 (GMT)
commitafcd838f1f69fdd4bf8a9e5799e0bd591fb109aa (patch)
tree8bc71a90e60c5acfe549254c18f79ba9a9904ab2 /Lib/compiler
parentedd9b0dfb39daa18c1462665c55bc4ad3d0a0e5d (diff)
downloadcpython-afcd838f1f69fdd4bf8a9e5799e0bd591fb109aa.zip
cpython-afcd838f1f69fdd4bf8a9e5799e0bd591fb109aa.tar.gz
cpython-afcd838f1f69fdd4bf8a9e5799e0bd591fb109aa.tar.bz2
Revert rev 42617, it was introduced to work around bug #1441397.
test_compiler now passes again.
Diffstat (limited to 'Lib/compiler')
-rw-r--r--Lib/compiler/future.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/compiler/future.py b/Lib/compiler/future.py
index 39c3bb9..fef189e 100644
--- a/Lib/compiler/future.py
+++ b/Lib/compiler/future.py
@@ -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