summaryrefslogtreecommitdiff
path: root/replace_urls.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-09-20 14:53:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-09-20 14:53:52 -0400
commita71063bd8c083915f73982a55705383fdae616b5 (patch)
tree49ea61c29e20d4c739ad361c68e7df38bf3747b2 /replace_urls.py
parentf308ecdf7257ff6bc6bc6890fefc66876a3c1052 (diff)
downloadentomb-a71063bd8c083915f73982a55705383fdae616b5.tar.gz
Remove dead code
Diffstat (limited to 'replace_urls.py')
-rwxr-xr-xreplace_urls.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/replace_urls.py b/replace_urls.py
index 7fe4ffd..8f9c161 100755
--- a/replace_urls.py
+++ b/replace_urls.py
@@ -39,18 +39,6 @@ def channel_from_template(templates, needle):
return dname
-def channel_from_url(url):
- if '://' not in url:
- raise ValueError('{} is not a valid URL')
-
- uri_delim = '://'
- uri_end = url.find(uri_delim) + len(uri_delim)
- uri_orig = url[:uri_end]
- url_parts = url[uri_end:].split('/', 2)
-
- return uri_orig, url_parts
-
-
def replace_urls(spec, prefix, templates, new_url):
with open(spec, 'r') as fp:
data = fp.read()
@@ -72,8 +60,6 @@ def replace_urls(spec, prefix, templates, new_url):
return '\n'.join(new_data)
- #data.replace(old_url, new_url)
- #data.replace(old_channel, new_channel)
if __name__ == '__main__':
parser = argparse.ArgumentParser()