diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2014-04-06 17:23:29 +0200 |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2014-04-06 17:23:29 +0200 |
commit | 64cd3888fa9e6a577cd88f55d7fe1f2bcab076c2 (patch) | |
tree | a44155b9dda6f32f6eda2503c898aeb8299718b5 /lib-python/3/macurl2path.py | |
parent | Branch for stlib-3.3.5 (diff) | |
download | pypy-64cd3888fa9e6a577cd88f55d7fe1f2bcab076c2.tar.gz pypy-64cd3888fa9e6a577cd88f55d7fe1f2bcab076c2.tar.bz2 pypy-64cd3888fa9e6a577cd88f55d7fe1f2bcab076c2.zip |
Drop stdlib from Python-3.3.5 tarball
Diffstat (limited to 'lib-python/3/macurl2path.py')
-rw-r--r-- | lib-python/3/macurl2path.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib-python/3/macurl2path.py b/lib-python/3/macurl2path.py index f22fb207b8..a68821d0b7 100644 --- a/lib-python/3/macurl2path.py +++ b/lib-python/3/macurl2path.py @@ -75,23 +75,3 @@ def pathname2url(pathname): def _pncomp2url(component): # We want to quote slashes return urllib.parse.quote(component[:31], safe='') - -def test(): - for url in ["index.html", - "bar/index.html", - "/foo/bar/index.html", - "/foo/bar/", - "/"]: - print('%r -> %r' % (url, url2pathname(url))) - for path in ["drive:", - "drive:dir:", - "drive:dir:file", - "drive:file", - "file", - ":file", - ":dir:", - ":dir:file"]: - print('%r -> %r' % (path, pathname2url(path))) - -if __name__ == '__main__': - test() |