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

Unified Diff: sitescripts/management/bin/generateNotifications.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/management/bin/generateNotifications.py
===================================================================
--- a/sitescripts/management/bin/generateNotifications.py
+++ b/sitescripts/management/bin/generateNotifications.py
@@ -25,16 +25,16 @@
notifications = load_notifications()
# Ignoring notifications with variants here - we can only process those in a
# URL handler.
- notifications = [x for x in notifications if "variants" in x]
+ notifications = [x for x in notifications if 'variants' in x]
output = {
- "notifications": notifications,
- "version": time.strftime("%Y%m%d%H%M", time.gmtime())
+ 'notifications': notifications,
+ 'version': time.strftime('%Y%m%d%H%M', time.gmtime())
}
- with codecs.open(path, "wb", encoding="utf-8") as file:
+ with codecs.open(path, 'wb', encoding='utf-8') as file:
json.dump(output, file, ensure_ascii=False, indent=2,
separators=(',', ': '), sort_keys=True)
-if __name__ == "__main__":
+if __name__ == '__main__':
setupStderr()
- output = get_config().get("notifications", "output")
+ output = get_config().get('notifications', 'output')
generate_notifications(output)

Powered by Google App Engine
This is Rietveld