From afcd838f1f69fdd4bf8a9e5799e0bd591fb109aa Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 29 Jul 2006 10:25:46 +0000 Subject: [PATCH] Revert rev 42617, it was introduced to work around bug #1441397. test_compiler now passes again. --- Lib/compiler/future.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Lib/compiler/future.py b/Lib/compiler/future.py index 39c3bb9bdc3..fef189e9e91 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