summaryrefslogtreecommitdiff
path: root/Lib/plat-riscos
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-12-26 22:54:01 +0000
committerGeorg Brandl <georg@python.org>2005-12-26 22:54:01 +0000
commit2d377b1ba82e33975864d5fc31958ccddf4444d8 (patch)
treee20b2003711aa25c5972e4028408c69a2e2da6de /Lib/plat-riscos
parentb8a9b8ce43cac40c356a9080ffa9e030ae556898 (diff)
downloadcpython-git-2d377b1ba82e33975864d5fc31958ccddf4444d8.tar.gz
Bug #649974 (backport): 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 7642b9f21f..7a8badf446 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():