]> granicus.if.org Git - python/commitdiff
Revert rev 42617, it was introduced to work around bug #1441397.
authorGeorg Brandl <georg@python.org>
Sat, 29 Jul 2006 10:25:46 +0000 (10:25 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 29 Jul 2006 10:25:46 +0000 (10:25 +0000)
test_compiler now passes again.

Lib/compiler/future.py

index 39c3bb9bdc390337433430d7464810f90d75afa7..fef189e9e91dedbb27b39f7b9a66a5a020c1c339 100644 (file)
@@ -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