summaryrefslogtreecommitdiffstats
path: root/Lib/urllib.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-12-26 22:53:56 (GMT)
committerGeorg Brandl <georg@python.org>2005-12-26 22:53:56 (GMT)
commitc0b24734e050fbddf6627be3f2dfb9860e8e5aeb (patch)
tree3333de3ae2a3420ed259865912c0b644d062244f /Lib/urllib.py
parentddddd2f7e675ccf5d860d8ab8c31822ab71ecf5c (diff)
downloadcpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.zip
cpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.tar.gz
cpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.tar.bz2
Bug #649974: make docstrings for url2pathname consistent
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r--Lib/urllib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py
index f700d71..802d9b7 100644
--- a/Lib/urllib.py
+++ b/Lib/urllib.py
@@ -50,8 +50,13 @@ elif os.name == 'riscos':
from rourl2path import url2pathname, pathname2url
else:
def url2pathname(pathname):
+ """OS-specific conversion from a relative URL of the 'file' scheme
+ to a file system path; not recommended for general use."""
return unquote(pathname)
+
def pathname2url(pathname):
+ """OS-specific conversion from a file system path to a relative URL
+ of the 'file' scheme; not recommended for general use."""
return quote(pathname)
# This really consists of two pieces: