summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Richart <nicolas.richart@epfl.ch>2016-08-15 21:13:25 +0200
committerNicolas Richart <nicolas.richart@epfl.ch>2016-08-15 21:13:25 +0200
commit37faa41b6f1160de5e15d13fafdcefe42cb40bde (patch)
tree0d85a65a2d425361284779e40588030a1edd789f
parent1e673bfa42c16afe296de6bc1ce3559af96c10c1 (diff)
downloadspack-37faa41b6f1160de5e15d13fafdcefe42cb40bde.tar.gz
spack-37faa41b6f1160de5e15d13fafdcefe42cb40bde.tar.bz2
spack-37faa41b6f1160de5e15d13fafdcefe42cb40bde.tar.xz
spack-37faa41b6f1160de5e15d13fafdcefe42cb40bde.zip
stripping the links to remove spaces and '\n'
-rw-r--r--lib/spack/spack/util/web.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/util/web.py b/lib/spack/spack/util/web.py
index 25f1e605d6..29ed6e0d32 100644
--- a/lib/spack/spack/util/web.py
+++ b/lib/spack/spack/util/web.py
@@ -109,7 +109,7 @@ def _spider(args):
while link_parser.links:
raw_link = link_parser.links.pop()
- abs_link = urlparse.urljoin(response_url, raw_link)
+ abs_link = urlparse.urljoin(response_url, raw_link.strip())
links.add(abs_link)