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

Unified Diff: sitescripts/extensions/bin/updateUpdateManifests.py

Issue 29345242: Noissue - Adapt quotes for compliance with our coding style in sitescripts (Closed)
Patch Set: Fixed raw string Created May 30, 2016, 8:47 a.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
Index: sitescripts/extensions/bin/updateUpdateManifests.py
===================================================================
--- a/sitescripts/extensions/bin/updateUpdateManifests.py
+++ b/sitescripts/extensions/bin/updateUpdateManifests.py
@@ -97,7 +97,7 @@
data = readMetadata(repo, links.get(repo.repositoryName, 'version'))
data['updateURL'] = links.get(repo.repositoryName, 'downloadURL')
if data['updateURL'].startswith(repo.downloadsURL):
- data['updateURL'] += "?update"
+ data['updateURL'] += '?update'
extensions[repo.type].append(data)
if len(extensions['android']) > 1:
@@ -112,8 +112,8 @@
# generate both that and the new one in the libadblockplus format as long
# as a significant amount of users is on an old version.
if repoType == 'android':
- newManifestPath = get_config().get("extensions",
- "androidNewUpdateManifestPath")
+ newManifestPath = get_config().get('extensions',
+ 'androidNewUpdateManifestPath')
writeAndroidUpdateManifest(newManifestPath, extensions[repoType])
template = get_template(get_config().get('extensions', '%sUpdateManifest' % repoType))
template.stream({'extensions': extensions[repoType]}).dump(manifestPath)
@@ -128,5 +128,5 @@
getDownloadLinks(parser)
writeUpdateManifest(parser)
-if __name__ == "__main__":
+if __name__ == '__main__':
updateUpdateManifests()

Powered by Google App Engine
This is Rietveld