Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@synchronized
def _update_sources_in_parallel(sources):
for m in sources:
m['response'] = _update_source_worker(m)
return sources
@synchronized
def reddit_url_submission_counts(story_list):
results = defaultdict(dict)
for s in story_list:
results[s['stories_id']] = _reddit_url_submissions_for(s['url'])
return results