summaryrefslogtreecommitdiff
path: root/Lib/tokenize.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-15 21:08:29 +0000
committerGuido van Rossum <guido@python.org>2001-07-15 21:08:29 +0000
commitb09f7ed6235783fca27a4f8730c4c33e0f53c16c (patch)
treed76806c53fd83557378dcd7395ce5309f707eb15 /Lib/tokenize.py
parent045ca7ae72368ce65fe7debbd343cf8133eea5e4 (diff)
downloadcpython-git-b09f7ed6235783fca27a4f8730c4c33e0f53c16c.tar.gz
Preliminary support for "from __future__ import generators" to enable
the yield statement. I figure we have to have this in before I can release 2.2a1 on Wednesday. Note: test_generators is currently broken, I'm counting on Tim to fix this.
Diffstat (limited to 'Lib/tokenize.py')
-rw-r--r--Lib/tokenize.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
index b79cdc0016..cbe45529c2 100644
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -22,6 +22,8 @@ are the same, except instead of generating tokens, tokeneater is a callback
function to which the 5 fields described above are passed as 5 arguments,
each time a new token is found."""
+from __future__ import generators
+
__author__ = 'Ka-Ping Yee <ping@lfw.org>'
__credits__ = \
'GvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro'