[Python-checkins] r50925 - python/trunk/Lib/compiler/future.py
georg.brandl
python-checkins at python.org
Sat Jul 29 12:25:47 CEST 2006
Author: georg.brandl
Date: Sat Jul 29 12:25:46 2006
New Revision: 50925
Modified:
python/trunk/Lib/compiler/future.py
Log:
Revert rev 42617, it was introduced to work around bug #1441397.
test_compiler now passes again.
Modified: python/trunk/Lib/compiler/future.py
==============================================================================
--- python/trunk/Lib/compiler/future.py (original)
+++ python/trunk/Lib/compiler/future.py Sat Jul 29 12:25:46 2006
@@ -23,14 +23,7 @@
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
More information about the Python-checkins
mailing list