summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-11-22 21:50:02 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2018-11-22 21:50:02 +0100
commita43ab2a9927d73c4c4dcef63617edbd9ff69dc85 (patch)
tree8b99607c3df031d5e61a8069d48c893555f566e3 /urls.py
parentfb923c4e4f82cb0760cf3db1e20efac8cb48ffb2 (diff)
downloadarchweb-a43ab2a9927d73c4c4dcef63617edbd9ff69dc85.tar.gz
archweb-a43ab2a9927d73c4c4dcef63617edbd9ff69dc85.zip
urls: add no cover pragma for unused show_urls
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index fd26b1cc..0819d302 100644
--- a/urls.py
+++ b/urls.py
@@ -105,7 +105,8 @@ urlpatterns.extend([
])
-def show_urls(urllist=urlpatterns, depth=0):
+# displays all archweb urls
+def show_urls(urllist=urlpatterns, depth=0): # pragma: no cover
for entry in urllist:
print(" " * depth, entry.regex.pattern)
if hasattr(entry, 'url_patterns'):