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: Rebased Created Sept. 24, 2018, 1:37 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
« no previous file with comments | « README.md ('k') | filters/strip_proto.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld