mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Bug #649974: make docstrings for url2pathname consistent
This commit is contained in:
parent
ddddd2f7e6
commit
c0b24734e0
4 changed files with 25 additions and 21 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue