summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-05-13 08:04:45 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-05-13 08:04:45 (GMT)
commit2584b2f9f3184894713d71ff57938bbb5eaf8bde (patch)
treeb612961cad52acdc4b8491fc08b36abcba619d73 /Doc
parent672c5816334aaba29de195a23a1e30c622c77461 (diff)
parent9c47d778f7d9e166c18d8b86f84a2065126c06c6 (diff)
downloadcpython-2584b2f9f3184894713d71ff57938bbb5eaf8bde.zip
cpython-2584b2f9f3184894713d71ff57938bbb5eaf8bde.tar.gz
cpython-2584b2f9f3184894713d71ff57938bbb5eaf8bde.tar.bz2
Neaten up example so it can be cut and pasted.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/re.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index b2562af..a753c68 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1339,8 +1339,8 @@ successive matches::
tax := price * 0.05;
'''
>>> for token in tokenize(statements):
- ... print(token)
- ...
+ print(token)
+
Token(typ='ID', value='total', line=1, column=8)
Token(typ='ASSIGN', value=':=', line=1, column=14)
Token(typ='ID', value='total', line=1, column=17)