From: Georg Brandl Date: Sat, 29 Jul 2006 10:25:46 +0000 (+0000) Subject: Revert rev 42617, it was introduced to work around bug #1441397. X-Git-Tag: v2.5b3~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afcd838f1f69fdd4bf8a9e5799e0bd591fb109aa;p=python Revert rev 42617, it was introduced to work around bug #1441397. test_compiler now passes again. --- diff --git a/Lib/compiler/future.py b/Lib/compiler/future.py index 39c3bb9bdc..fef189e9e9 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