]> granicus.if.org Git - python/commitdiff
Neaten up example so it can be cut and pasted.
authorRaymond Hettinger <python@rcn.com>
Fri, 13 May 2011 08:03:50 +0000 (01:03 -0700)
committerRaymond Hettinger <python@rcn.com>
Fri, 13 May 2011 08:03:50 +0000 (01:03 -0700)
Doc/library/re.rst

index cd3fbb6be0e4ca95af5344ea38406e3b28931255..6df310659352ba657df0f122b77fdb9740e77ba4 100644 (file)
@@ -1336,8 +1336,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)