summaryrefslogtreecommitdiffstats
path: root/Lib/plat-riscos
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/plat-riscos
parentddddd2f7e675ccf5d860d8ab8c31822ab71ecf5c (diff)
downloadcpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.zip
cpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.tar.gz
cpython-c0b24734e050fbddf6627be3f2dfb9860e8e5aeb.tar.bz2
Bug #649974: make docstrings for url2pathname consistent
Diffstat (limited to 'Lib/plat-riscos')
-rw-r--r--Lib/plat-riscos/rourl2path.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/plat-riscos/rourl2path.py b/Lib/plat-riscos/rourl2path.py
index 7642b9f..7a8badf 100644
--- a/Lib/plat-riscos/rourl2path.py
+++ b/Lib/plat-riscos/rourl2path.py
@@ -11,7 +11,8 @@ __all__ = ["url2pathname","pathname2url"]
__slash_dot = string.maketrans("/.", "./")
def url2pathname(url):
- "Convert URL to a RISC OS path."
+ """OS-specific conversion from a relative URL of the 'file' scheme
+ to a file system path; not recommended for general use."""
tp = urllib.splittype(url)[0]
if tp and tp <> 'file':
raise RuntimeError, 'Cannot convert non-local URL to pathname'
@@ -46,7 +47,8 @@ def url2pathname(url):
return '.'.join(components)
def pathname2url(pathname):
- "Convert a RISC OS path name to a file url."
+ """OS-specific conversion from a file system path to a relative URL
+ of the 'file' scheme; not recommended for general use."""
return urllib.quote('///' + pathname.translate(__slash_dot), "/$:")
def test():