[Python-checkins] cpython (merge 3.3 -> default): Merge

raymond.hettinger python-checkins at python.org
Fri Mar 1 12:31:21 CET 2013


http://hg.python.org/cpython/rev/a066466fddd3
changeset:   82436:a066466fddd3
parent:      82434:e35c053cc4ec
parent:      82435:43ac02b7e322
user:        Raymond Hettinger <python at rcn.com>
date:        Fri Mar 01 03:31:05 2013 -0800
summary:
  Merge

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


diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -215,7 +215,7 @@
 
     >>> # Find the ten most common words in Hamlet
     >>> import re
-    >>> words = re.findall('\w+', open('hamlet.txt').read().lower())
+    >>> words = re.findall(r'\w+', open('hamlet.txt').read().lower())
     >>> Counter(words).most_common(10)
     [('the', 1143), ('and', 966), ('to', 762), ('of', 669), ('i', 631),
      ('you', 554),  ('a', 546), ('my', 514), ('hamlet', 471), ('in', 451)]

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


More information about the Python-checkins mailing list