[Python-checkins] cpython (merge 3.2 -> default): Neaten up example so it can be cut and pasted.

raymond.hettinger python-checkins at python.org
Fri May 13 10:04:55 CEST 2011


http://hg.python.org/cpython/rev/ee7312a1eeb7
changeset:   70072:ee7312a1eeb7
parent:      70070:b609a1701976
parent:      70071:512f638dc9e9
user:        Raymond Hettinger <python at rcn.com>
date:        Fri May 13 01:04:45 2011 -0700
summary:
  Neaten up example so it can be cut and pasted.

files:
  Doc/library/re.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -1339,8 +1339,8 @@
         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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list