Changeset 388 for python/vendor/current/Lib/macurl2path.py
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Lib/macurl2path.py
r2 r388 76 76 component = urllib.quote(component[:31], safe='') # We want to quote slashes 77 77 return component 78 79 def test():80 for url in ["index.html",81 "bar/index.html",82 "/foo/bar/index.html",83 "/foo/bar/",84 "/"]:85 print '%r -> %r' % (url, url2pathname(url))86 for path in ["drive:",87 "drive:dir:",88 "drive:dir:file",89 "drive:file",90 "file",91 ":file",92 ":dir:",93 ":dir:file"]:94 print '%r -> %r' % (path, pathname2url(path))95 96 if __name__ == '__main__':97 test()
Note:
See TracChangeset
for help on using the changeset viewer.