mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
support Python 3
This commit is contained in:
parent
ba95ea9499
commit
c2e6f87ea8
|
@ -1,6 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from urlparse import urlsplit
|
from pip.backwardcompat import urlparse
|
||||||
from pip import call_subprocess, InstallationError
|
from pip import call_subprocess, InstallationError
|
||||||
from pip.index import Link
|
from pip.index import Link
|
||||||
from pip.util import rmtree, display_path
|
from pip.util import rmtree, display_path
|
||||||
|
@ -247,7 +247,7 @@ def get_rev_options(url, rev):
|
||||||
else:
|
else:
|
||||||
rev_options = []
|
rev_options = []
|
||||||
|
|
||||||
r = urlsplit(url)
|
r = urlparse.urlsplit(url)
|
||||||
if hasattr(r, 'username'):
|
if hasattr(r, 'username'):
|
||||||
# >= Python-2.5
|
# >= Python-2.5
|
||||||
username, password = r.username, r.password
|
username, password = r.username, r.password
|
||||||
|
|
Loading…
Reference in a new issue