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

Side by Side Diff: filters/domain.py

Issue 29874607: Issue 6769 - Avoid hardcoding the URL (Closed)
Patch Set: Created Sept. 4, 2018, 4:23 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 import urlparse
2
3 def domain(url):
4 return urlparse.urlsplit(url).netloc.split(":")[0]
OLDNEW
« no previous file with comments | « README.md ('k') | filters/strip_proto.py » ('j') | templates/plaintext.tmpl » ('J')

Powered by Google App Engine
This is Rietveld