summaryrefslogtreecommitdiffstats
path: root/Lib/compiler
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-08-18 00:07:46 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-08-18 00:07:46 (GMT)
commitec5bfd13cada33ed36f93fd76b1355ce9ee2710f (patch)
tree4379233c5b312439170e08cc7fba1d45b872f8b8 /Lib/compiler
parent8548f9b1831b995e8b499015ffae87920dd8b8ae (diff)
downloadcpython-ec5bfd13cada33ed36f93fd76b1355ce9ee2710f.zip
cpython-ec5bfd13cada33ed36f93fd76b1355ce9ee2710f.tar.gz
cpython-ec5bfd13cada33ed36f93fd76b1355ce9ee2710f.tar.bz2
Track removal of doc string from Module().nodes[0]
Diffstat (limited to 'Lib/compiler')
-rw-r--r--Lib/compiler/future.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/compiler/future.py b/Lib/compiler/future.py
index fe25b72..09ffe4a 100644
--- a/Lib/compiler/future.py
+++ b/Lib/compiler/future.py
@@ -15,19 +15,14 @@ def is_future(stmt):
class FutureParser:
- features = ("nested_scopes",)
+ features = ("nested_scopes", "generators", "division")
def __init__(self):
self.found = {} # set
def visitModule(self, node):
- if node.doc is None:
- off = 0
- else:
- off = 1
-
stmt = node.node
- for s in stmt.nodes[off:]:
+ for s in stmt.nodes:
if not self.check_stmt(s):
break