summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2009-08-11 14:01:44 -0600
committerBrian Rosner <brosner@gmail.com>2009-08-11 14:01:44 -0600
commit255fea79593a65054d1899de2d05585e6927b37a (patch)
tree9af0e7f85c196bb13366fde2a39e9a6fb706db1a
parent0786536634510d603bc1ed163a396f928bfa647a (diff)
downloadpip-255fea79593a65054d1899de2d05585e6927b37a.tar.gz
don't override the matched base_url found in content with the else case
-rw-r--r--pip.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pip.py b/pip.py
index 0bc07fa7f..7fae68309 100644
--- a/pip.py
+++ b/pip.py
@@ -2392,7 +2392,8 @@ class HTMLPage(object):
match = self._base_re.search(self.content)
if match:
self._base_url = match.group(1)
- self._base_url = self.url
+ else:
+ self._base_url = self.url
return self._base_url
@property