[Python-checkins] cpython (2.7): Use raw strings for docstrings with backslashes in ASCII diagrams

eric.araujo python-checkins at python.org
Sun Feb 26 03:49:11 CET 2012


http://hg.python.org/cpython/rev/efe1824f4ca2
changeset:   75271:efe1824f4ca2
branch:      2.7
user:        Éric Araujo <merwok at netwok.org>
date:        Sun Feb 26 01:33:22 2012 +0100
summary:
  Use raw strings for docstrings with backslashes in ASCII diagrams

files:
  Lib/cookielib.py |  2 +-
  Lib/httplib.py   |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/cookielib.py b/Lib/cookielib.py
--- a/Lib/cookielib.py
+++ b/Lib/cookielib.py
@@ -1,4 +1,4 @@
-"""HTTP cookie handling for web clients.
+r"""HTTP cookie handling for web clients.
 
 This module has (now fairly distant) origins in Gisle Aas' Perl module
 HTTP::Cookies, from the libwww-perl library.
diff --git a/Lib/httplib.py b/Lib/httplib.py
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -1,4 +1,4 @@
-"""HTTP/1.1 client library
+r"""HTTP/1.1 client library
 
 <intro stuff goes here>
 <other stuff, too>

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


More information about the Python-checkins mailing list