Bug #649974: make docstrings for url2pathname consistent
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 @@
__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 @@
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():