diff options
author | Georg Brandl <georg@python.org> | 2005-12-26 22:53:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-12-26 22:53:56 (GMT) |
commit | c0b24734e050fbddf6627be3f2dfb9860e8e5aeb (patch) | |
tree | 3333de3ae2a3420ed259865912c0b644d062244f /Lib/macurl2path.py | |
parent | ddddd2f7e675ccf5d860d8ab8c31822ab71ecf5c (diff) | |
download | cpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.zip cpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.tar.gz cpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.tar.bz2 |
Bug #649974: make docstrings for url2pathname consistent
Diffstat (limited to 'Lib/macurl2path.py')
-rw-r--r-- | Lib/macurl2path.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/macurl2path.py b/Lib/macurl2path.py index ed23883..4c5ae64 100644 --- a/Lib/macurl2path.py +++ b/Lib/macurl2path.py @@ -8,7 +8,8 @@ import os __all__ = ["url2pathname","pathname2url"] def url2pathname(pathname): - "Convert /-delimited pathname to mac pathname" + """OS-specific conversion from a relative URL of the 'file' scheme + to a file system path; not recommended for general use.""" # # XXXX The .. handling should be fixed... # @@ -49,7 +50,8 @@ def url2pathname(pathname): return urllib.unquote(rv) def pathname2url(pathname): - "convert mac pathname to /-delimited pathname" + """OS-specific conversion from a file system path to a relative URL + of the 'file' scheme; not recommended for general use.""" if '/' in pathname: raise RuntimeError, "Cannot convert pathname containing slashes" components = pathname.split(':') |