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: Fixed some mistakes Created Sept. 5, 2018, 4:59 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
« no previous file with comments | « filters/domain.py ('k') | includes/testcases.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld