]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add 'r' to docstrings to avoid expanded backslash escapes. (Ka-Ping Yee)
authorGuido van Rossum <guido@python.org>
Tue, 30 May 2000 13:25:35 +0000 (13:25 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 May 2000 13:25:35 +0000 (13:25 +0000)
Lib/nturl2path.py
Lib/reconvert.py

index ae261bad6fa22f32521cf003ef8fed9cf747c29c..0445b8afb0fe94e8dc930405f38ff8595a0a0ea4 100644 (file)
@@ -1,7 +1,8 @@
 """Convert a NT pathname to a file URL and vice versa."""
 
 def url2pathname(url):
-       """ Convert a URL to a DOS path...
+       r"""Convert a URL to a DOS path.
+
                ///C|/foo/bar/spam.foo
 
                        becomes
@@ -32,7 +33,8 @@ def url2pathname(url):
        return path
 
 def pathname2url(p):
-       """ Convert a DOS path name to a file url...
+       r"""Convert a DOS path name to a file url.
+
                C:\foo\bar\spam.foo
 
                        becomes
index 2b044b636ac22a3e967af2fee96ca22af316ffa2..7c2d3768aeede6a69ce9d1d606796ba4ea5e0461 100755 (executable)
@@ -1,6 +1,6 @@
 #! /usr/bin/env python1.5
 
-"""Convert old ("regex") regular expressions to new syntax ("re").
+r"""Convert old ("regex") regular expressions to new syntax ("re").
 
 When imported as a module, there are two functions, with their own
 strings: