diff options
author | Guido van Rossum <guido@python.org> | 2000-05-30 13:25:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-30 13:25:35 (GMT) |
commit | 7f91cf9a68432ad502ff9a25070b74ca62b9ac8d (patch) | |
tree | 88dd32bb47b29870d63646751b1ea429ef19324e /Lib/nturl2path.py | |
parent | 3e7b133c957d92b2f0db6e7060bf8a48617f8d9d (diff) | |
download | cpython-7f91cf9a68432ad502ff9a25070b74ca62b9ac8d.zip cpython-7f91cf9a68432ad502ff9a25070b74ca62b9ac8d.tar.gz cpython-7f91cf9a68432ad502ff9a25070b74ca62b9ac8d.tar.bz2 |
Add 'r' to docstrings to avoid expanded backslash escapes. (Ka-Ping Yee)
Diffstat (limited to 'Lib/nturl2path.py')
-rw-r--r-- | Lib/nturl2path.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/nturl2path.py b/Lib/nturl2path.py index ae261ba..0445b8a 100644 --- a/Lib/nturl2path.py +++ b/Lib/nturl2path.py @@ -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 |