summaryrefslogtreecommitdiff
path: root/pip/util.py
diff options
context:
space:
mode:
authorHugo Lopes Tavares <hltbra@gmail.com>2010-06-09 19:55:27 -0300
committerHugo Lopes Tavares <hltbra@gmail.com>2010-06-09 19:55:27 -0300
commitb5fc588ceceb557eb61197cfa85e8d584b1c2f35 (patch)
treeca11c1618261f8d656cc51e998723af4b63d9d7f /pip/util.py
parentcfadd22030a45eca26e056a4cc4327c989475af4 (diff)
downloadpip-b5fc588ceceb557eb61197cfa85e8d584b1c2f35.tar.gz
tets care are case-sensitive and the right function is normpath, to change slashes to backslashes in win32
Diffstat (limited to 'pip/util.py')
-rw-r--r--pip/util.py2
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])