Bug #649974: make docstrings for url2pathname consistent

This commit is contained in:
Georg Brandl 2005-12-26 22:53:56 +00:00
parent ddddd2f7e6
commit c0b24734e0
4 changed files with 25 additions and 21 deletions

View file

@ -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: