[Checkins] SVN: manuel/trunk/src/manuel/README.txt tweak example code a bit
Benji York
benji at zope.com
Sat Jun 13 14:53:08 EDT 2009
Log message for revision 100922:
tweak example code a bit
Changed:
U manuel/trunk/src/manuel/README.txt
-=-
Modified: manuel/trunk/src/manuel/README.txt
===================================================================
--- manuel/trunk/src/manuel/README.txt 2009-06-13 18:19:08 UTC (rev 100921)
+++ manuel/trunk/src/manuel/README.txt 2009-06-13 18:53:08 UTC (rev 100922)
@@ -529,13 +529,12 @@
... if not isinstance(region.parsed, doctest.Example):
... return
...
- ... reader = StringIO.StringIO(region.source).readline
- ...
... if region.evaluated.getvalue():
- ... vars = []
+ ... vars = set()
+ ... reader = StringIO.StringIO(region.source).readline
... for ttype, tval, _, _, _ in tokenize.generate_tokens(reader):
... if ttype == token.NAME:
- ... vars.append(tval)
+ ... vars.add(tval)
...
... info = ''
... for name in sorted(globs):
More information about the Checkins
mailing list