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

Unified Diff: sitescripts/templateFilters.py

Issue 29756646: Noissue - Adapt best practices for trailing commas (abpssembly) (Closed)
Patch Set: Re-run script on Python 2, added flake8-commas extension Created April 19, 2018, 2:41 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 | « sitescripts/submit_email/web/submit_email.py ('k') | sitescripts/testpages/web/sitekey_frame.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/templateFilters.py
===================================================================
--- a/sitescripts/templateFilters.py
+++ b/sitescripts/templateFilters.py
@@ -129,14 +129,14 @@
cmp(a.deprecated, b.deprecated) or
cmp(b.catchall, a.catchall) or
cmp(b.recommendation != None, a.recommendation != None) or
- cmp(a.name.lower(), b.name.lower())
+ cmp(a.name.lower(), b.name.lower()),
)
else:
value.sort(
lambda a, b:
cmp(a.type, b.type) or
cmp(a.deprecated, b.deprecated) or
- cmp(a.name.lower(), b.name.lower())
+ cmp(a.name.lower(), b.name.lower()),
)
return value
« no previous file with comments | « sitescripts/submit_email/web/submit_email.py ('k') | sitescripts/testpages/web/sitekey_frame.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld