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

Delta Between Two Patch Sets: filters/stripindex.py

Issue 29332884: Issue 3435 - add missing trailing slash to the canonical url (Closed)
Left Patch Set: Created Dec. 18, 2015, 5:33 p.m.
Right Patch Set: Removed the filter went with jinja2 Created Dec. 18, 2015, 5:43 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | templates/default.tmpl » ('j') | templates/default.tmpl » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 def stripindex(path):
2 parts = path.split("/")
3 if parts[-1] == "index":
4 parts.pop()
5 return "/".join(parts)
LEFTRIGHT

Powered by Google App Engine
This is Rietveld