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

Unified Diff: packagerChrome.py

Issue 29345279: Noissue - Adapt quotes for compliance with our coding style in buildtools (Closed)
Patch Set: Created May 29, 2016, 1:27 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 | « packager.py ('k') | packagerGecko.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packagerChrome.py
===================================================================
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -248,7 +248,7 @@
if match:
value = match.group(1)
else:
- index = value.find("&")
+ index = value.find('&')
if index >= 0:
value = value[0:index] + value[index + 1:]
data[key] = {'message': value}
@@ -261,7 +261,7 @@
def truncate(text, length_limit):
if len(text) <= length_limit:
return text
- return text[:length_limit - 1].rstrip() + u"\u2026"
+ return text[:length_limit - 1].rstrip() + u'\u2026'
def fixTranslationsForCWS(files):
@@ -277,7 +277,7 @@
limits = {}
manifest = json.loads(files['manifest.json'])
for key, limit in (('name', 45), ('description', 132), ('short_name', 12)):
- match = re.search(r'__MSG_(\S+)__', manifest.get(key, ""))
+ match = re.search(r'__MSG_(\S+)__', manifest.get(key, ''))
if match:
limits[match.group(1)] = limit
« no previous file with comments | « packager.py ('k') | packagerGecko.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld