mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Automated merge with http://bitbucket.org/brosner/pip/
This commit is contained in:
commit
795fac3815
11
pip.py
11
pip.py
|
@ -2388,10 +2388,13 @@ class HTMLPage(object):
|
|||
|
||||
@property
|
||||
def base_url(self):
|
||||
match = self._base_re.search(self.content)
|
||||
if match:
|
||||
return match.group(1)
|
||||
return self.url
|
||||
if not hasattr(self, "_base_url"):
|
||||
match = self._base_re.search(self.content)
|
||||
if match:
|
||||
self._base_url = match.group(1)
|
||||
else:
|
||||
self._base_url = self.url
|
||||
return self._base_url
|
||||
|
||||
@property
|
||||
def links(self):
|
||||
|
|
Loading…
Reference in a new issue