1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

support Python 3

This commit is contained in:
Qiangning Hong 2012-02-02 15:25:30 +08:00
parent ba95ea9499
commit c2e6f87ea8

View file

@ -1,6 +1,6 @@
import os
import re
from urlparse import urlsplit
from pip.backwardcompat import urlparse
from pip import call_subprocess, InstallationError
from pip.index import Link
from pip.util import rmtree, display_path
@ -247,7 +247,7 @@ def get_rev_options(url, rev):
else:
rev_options = []
r = urlsplit(url)
r = urlparse.urlsplit(url)
if hasattr(r, 'username'):
# >= Python-2.5
username, password = r.username, r.password