]> granicus.if.org Git - python/commitdiff
[Bug #1622533] Make docstrings raw strings because they contain control characters...
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 5 Jan 2007 14:24:36 +0000 (14:24 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 5 Jan 2007 14:24:36 +0000 (14:24 +0000)
Lib/StringIO.py
Lib/difflib.py

index 1e5f25408d7001cd0aabd55944b6484980d90b9e..232009fb9397e27d9b1465c28ee5f24e583c5943 100644 (file)
@@ -137,7 +137,7 @@ class StringIO:
         return r
 
     def readline(self, length=None):
-        """Read one entire line from the file.
+        r"""Read one entire line from the file.
 
         A trailing newline character is kept in the string (but may be absent
         when a file ends with an incomplete line). If the size argument is
index 3e28b18bf426ba1e2f4831e935cd63f3139b6e01..d1c29318a6d92c09f8505b3323cf4020e686bf9d 100644 (file)
@@ -1311,7 +1311,7 @@ def ndiff(a, b, linejunk=None, charjunk=IS_CHARACTER_JUNK):
 
 def _mdiff(fromlines, tolines, context=None, linejunk=None,
            charjunk=IS_CHARACTER_JUNK):
-    """Returns generator yielding marked up from/to side by side differences.
+    r"""Returns generator yielding marked up from/to side by side differences.
 
     Arguments:
     fromlines -- list of text lines to compared to tolines