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

Unified Diff: sitescripts/crawler/bin/import_sites.py

Issue 29569566: Noissue - Replace flake8-putty with flake8-per-file-ignores, update to flake8 3 (sitescripts) (Closed)
Patch Set: Created Oct. 8, 2017, 6:02 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
« no previous file with comments | « sitescripts/content_blocker_lists/bin/generate_lists.py ('k') | sitescripts/docs/bin/generate_docs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/crawler/bin/import_sites.py
===================================================================
--- a/sitescripts/crawler/bin/import_sites.py
+++ b/sitescripts/crawler/bin/import_sites.py
@@ -63,6 +63,7 @@
cursor.execute('INSERT IGNORE INTO crawler_sites (url) VALUES (%s)', url)
_get_db().commit()
+
if __name__ == '__main__':
easylist_dir = get_config().get('crawler', 'easylist_repository')
site_urls = _extract_sites(easylist_dir)
« no previous file with comments | « sitescripts/content_blocker_lists/bin/generate_lists.py ('k') | sitescripts/docs/bin/generate_docs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld