Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: filters/strip_proto.py

Issue 29874607: Issue 6769 - Avoid hardcoding the URL (Closed)
Patch Set: Created Sept. 4, 2018, 4:23 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: filters/strip_proto.py
diff --git a/filters/strip_proto.py b/filters/strip_proto.py
new file mode 100644
index 0000000000000000000000000000000000000000..0fec87561fdeda5409ef132508b2ab092dc89b58
--- /dev/null
+++ b/filters/strip_proto.py
@@ -0,0 +1,2 @@
+def strip_proto(url):
+ return url.split("://", 1)[-1]
« no previous file with comments | « filters/domain.py ('k') | includes/testcases.md » ('j') | templates/plaintext.tmpl » ('J')

Powered by Google App Engine
This is Rietveld