diff options
author | Hugo Lopes Tavares <hltbra@gmail.com> | 2010-06-09 19:55:27 -0300 |
---|---|---|
committer | Hugo Lopes Tavares <hltbra@gmail.com> | 2010-06-09 19:55:27 -0300 |
commit | b5fc588ceceb557eb61197cfa85e8d584b1c2f35 (patch) | |
tree | ca11c1618261f8d656cc51e998723af4b63d9d7f | |
parent | cfadd22030a45eca26e056a4cc4327c989475af4 (diff) | |
download | pip-b5fc588ceceb557eb61197cfa85e8d584b1c2f35.tar.gz |
tets care are case-sensitive and the right function is normpath, to change slashes to backslashes in win32
-rw-r--r-- | pip/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pip/util.py b/pip/util.py index 9b44bead6..a7aca9e9d 100644 --- a/pip/util.py +++ b/pip/util.py @@ -167,7 +167,7 @@ def path_to_url2(path): Convert a path to a file: URL. The path will be made absolute and have quoted path parts. """ - path = os.path.normcase(os.path.abspath(path)) + path = os.path.normpath(os.path.abspath(path)) drive, path = os.path.splitdrive(path) filepath = path.split(os.path.sep) url = '/'.join([urllib.quote(part) for part in filepath]) |