summaryrefslogtreecommitdiff
path: root/Lib/macurl2path.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/macurl2path.py')
-rw-r--r--Lib/macurl2path.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/Lib/macurl2path.py b/Lib/macurl2path.py
index f22fb207b8..a68821d0b7 100644
--- a/Lib/macurl2path.py
+++ b/Lib/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()