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

Unified Diff: cms/sources.py

Issue 29756692: Noissue - Adapt best practices for trailing commas (cms) (Closed)
Patch Set: Manual cleanup Created April 19, 2018, 1:48 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
« cms/bin/translate.py ('K') | « cms/converters.py ('k') | cms/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cms/sources.py
===================================================================
--- a/cms/sources.py
+++ b/cms/sources.py
@@ -115,10 +115,8 @@
def list_localizable_files(self):
default_locale = self.read_config().get('general', 'defaultlocale')
- return filter(
- lambda f: os.path.splitext(f)[1].lower() != '.json',
- self.list_files('locales/%s' % default_locale)
Sebastian Noack 2018/04/19 13:51:19 For whatever reason, my script missed this one.
- )
+ return filter(lambda f: os.path.splitext(f)[1].lower() != '.json',
+ self.list_files('locales/%s' % default_locale))
def has_localizable_file(self, locale, filename):
return self.has_file(self.localizable_file_filename(locale, filename))
« cms/bin/translate.py ('K') | « cms/converters.py ('k') | cms/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld