]> granicus.if.org Git - python/commitdiff
Make the docstring for io.open() a raw string so that the explanation for the
authorBrett Cannon <bcannon@gmail.com>
Mon, 15 Oct 2007 20:52:41 +0000 (20:52 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 15 Oct 2007 20:52:41 +0000 (20:52 +0000)
'newline' argument is not a jumbled mess of newlines.

Lib/io.py

index 68ee4df33811b4de923bbdd15bf244fa86888e96..ce7aee2eb883a03fb29e1009244cb4b41684ad66 100644 (file)
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -50,7 +50,7 @@ class BlockingIOError(IOError):
 
 
 def open(file, mode="r", buffering=None, encoding=None, newline=None):
-    """Replacement for the built-in open function.
+    r"""Replacement for the built-in open function.
 
     Args:
       file: string giving the name of the file to be opened;