[Python-checkins] r53262 - python/trunk/Lib/StringIO.py python/trunk/Lib/difflib.py

andrew.kuchling python-checkins at python.org
Fri Jan 5 15:22:17 CET 2007


Author: andrew.kuchling
Date: Fri Jan  5 15:22:17 2007
New Revision: 53262

Modified:
   python/trunk/Lib/StringIO.py
   python/trunk/Lib/difflib.py
Log:
[Bug #1622533] Make docstrings raw strings because they contain control characters (\0, \1)

Modified: python/trunk/Lib/StringIO.py
==============================================================================
--- python/trunk/Lib/StringIO.py	(original)
+++ python/trunk/Lib/StringIO.py	Fri Jan  5 15:22:17 2007
@@ -137,7 +137,7 @@
         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

Modified: python/trunk/Lib/difflib.py
==============================================================================
--- python/trunk/Lib/difflib.py	(original)
+++ python/trunk/Lib/difflib.py	Fri Jan  5 15:22:17 2007
@@ -1311,7 +1311,7 @@
 
 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


More information about the Python-checkins mailing list