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

Unified Diff: sitescripts/reports/bin/mailDigests.py

Issue 29670611: Issue 5844 - Remove redundant parentheses in sitescripts and abpsembly (Closed) Base URL: https://hg.adblockplus.org/sitescripts/
Patch Set: Created Jan. 16, 2018, 5:28 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
Index: sitescripts/reports/bin/mailDigests.py
===================================================================
--- a/sitescripts/reports/bin/mailDigests.py
+++ b/sitescripts/reports/bin/mailDigests.py
@@ -111,7 +111,7 @@
groups[report['site']] = {'name': report['site'], 'reports': [report], 'weight': report['weight'], 'dumpAll': False}
miscGroup = {'name': 'Misc', 'reports': [], 'weight': None, 'dumpAll': True}
- for (site, group) in groups.items():
+ for site, group in groups.items():
if len(group['reports']) == 1:
miscGroup['reports'].append(group['reports'][0])
del groups[site]
@@ -173,7 +173,7 @@
raise Exception('No interval specified')
interval = sys.argv[1]
- if not (interval in ['all', 'week', 'day']):
+ if interval not in ['all', 'week', 'day']:
raise Exception('Invalid interval')
if interval == 'week' and len(sys.argv) < 3:

Powered by Google App Engine
This is Rietveld