summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-08-15 13:42:38 -0700
committerGitHub <noreply@github.com>2016-08-15 13:42:38 -0700
commitae20e53cfba0f5689c72657a022295442dd4134e (patch)
tree0d85a65a2d425361284779e40588030a1edd789f
parent1e673bfa42c16afe296de6bc1ce3559af96c10c1 (diff)
parent37faa41b6f1160de5e15d13fafdcefe42cb40bde (diff)
downloadspack-ae20e53cfba0f5689c72657a022295442dd4134e.tar.gz
spack-ae20e53cfba0f5689c72657a022295442dd4134e.tar.bz2
spack-ae20e53cfba0f5689c72657a022295442dd4134e.tar.xz
spack-ae20e53cfba0f5689c72657a022295442dd4134e.zip
Merge pull request #1524 from epfl-scitas/bugfix/urls
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)