Kaydet (Commit) 7f91cf9a authored tarafından Guido van Rossum's avatar Guido van Rossum

Add 'r' to docstrings to avoid expanded backslash escapes. (Ka-Ping Yee)

üst 3e7b133c
"""Convert a NT pathname to a file URL and vice versa."""
def url2pathname(url):
""" Convert a URL to a DOS path...
r"""Convert a URL to a DOS path.
///C|/foo/bar/spam.foo
becomes
......@@ -32,7 +33,8 @@ def url2pathname(url):
return path
def pathname2url(p):
""" Convert a DOS path name to a file url...
r"""Convert a DOS path name to a file url.
C:\foo\bar\spam.foo
becomes
......
#! /usr/bin/env python1.5
"""Convert old ("regex") regular expressions to new syntax ("re").
r"""Convert old ("regex") regular expressions to new syntax ("re").
When imported as a module, there are two functions, with their own
strings:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment