summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--manifest_xml.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifest_xml.py b/manifest_xml.py
index 8b57bf52..cfbd9efa 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -90,7 +90,8 @@ class _XmlRemote(object):
90 # and then replacing it with the original when we are done. 90 # and then replacing it with the original when we are done.
91 91
92 if manifestUrl.find(':') != manifestUrl.find('/') - 1: 92 if manifestUrl.find(':') != manifestUrl.find('/') - 1:
93 url = urllib.parse.urljoin('gopher://' + manifestUrl, url)[9:] 93 url = urllib.parse.urljoin('gopher://' + manifestUrl, url)
94 url = re.sub(r'^gopher://', '', url)
94 else: 95 else:
95 url = urllib.parse.urljoin(manifestUrl, url) 96 url = urllib.parse.urljoin(manifestUrl, url)
96 return url 97 return url