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

Unified Diff: sitescripts/subscriptions/bin/updateStatusPage.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/subscriptions/bin/updateStatusPage.py
===================================================================
--- a/sitescripts/subscriptions/bin/updateStatusPage.py
+++ b/sitescripts/subscriptions/bin/updateStatusPage.py
@@ -55,15 +55,15 @@
url = getattr(subscription, key)
if url != None:
urls[url] = True
- for (title, url, complete) in subscription.variants:
+ for title, url, complete in subscription.variants:
urls[url] = True
pool = eventlet.GreenPool()
- for (url, result) in pool.imap(checkURL, urls.iterkeys()):
+ for url, result in pool.imap(checkURL, urls.iterkeys()):
urls[url] = result
if result is False:
sites[urlparse(url).netloc] = True
- for (site, result) in pool.imap(checkSite, sites.iterkeys()):
+ for site, result in pool.imap(checkSite, sites.iterkeys()):
sites[site] = result
result = []
@@ -80,7 +80,7 @@
'result': urls[url],
'siteResult': site in sites and sites[site],
})
- for (title, url, complete) in subscription.variants:
+ for title, url, complete in subscription.variants:
site = urlparse(url).netloc
s['links'].append({
'url': url,

Powered by Google App Engine
This is Rietveld