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

Issue 29329537: Issue 3168 - Add a script for generating content blocker lists (Closed)

Created:
Oct. 30, 2015, 7:11 a.m. by Felix Dahlke
Modified:
Nov. 20, 2015, 9:07 a.m.
Reviewers:
Sebastian Noack, kzar
CC:
Wladimir Palant
Visibility:
Public.

Description

Issue 3168 - Add a script for generating content blocker lists

Patch Set 1 : #

Patch Set 2 : Keep the lists in memory, don't print anything to stdout, and more #

Total comments: 8

Patch Set 3 : Remove _get_config_value, combine lists in _convert_filter_lists #

Total comments: 3

Patch Set 4 : Rebased, check retcode outside the finally block #

Total comments: 3

Patch Set 5 : Remove retcode variable, move return code check out of the with block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, --1 lines) Patch
M .sitescripts.example View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
A sitescripts/content_blocker_lists/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A sitescripts/content_blocker_lists/bin/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A sitescripts/content_blocker_lists/bin/generate_lists.py View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download

Messages

Total messages: 19
Felix Dahlke
https://codereview.adblockplus.org/29329537/diff/29329538/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29329538/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode1 sitescripts/content_blocker_lists/bin/generate_lists.py:1: #!/usr/bin/env python This script is almost the same as ...
Oct. 30, 2015, 7:16 a.m. (2015-10-30 07:16:45 UTC) #1
kzar
This seems like quite a hack, wouldn't we be better off with some small Bash ...
Oct. 30, 2015, 12:56 p.m. (2015-10-30 12:56:15 UTC) #2
Felix Dahlke
Replying to some comments already, I'll look into the other ones in a bit. On ...
Oct. 30, 2015, 1:22 p.m. (2015-10-30 13:22:15 UTC) #3
kzar
On 2015/10/30 13:22:15, Felix Dahlke wrote: > I had the exact same discussion with Sebastian, ...
Oct. 30, 2015, 4:24 p.m. (2015-10-30 16:24:22 UTC) #4
Felix Dahlke
On 2015/10/30 16:24:22, kzar wrote: > I remain unconvinced, does the Python script here do ...
Oct. 30, 2015, 4:39 p.m. (2015-10-30 16:39:10 UTC) #5
kzar
I just read through the previous code review that you mentioned Felix in IRC. Although ...
Nov. 11, 2015, 2:41 p.m. (2015-11-11 14:41:11 UTC) #6
Sebastian Noack
I know it's a little late, and I don't insist of having that one addressed, ...
Nov. 12, 2015, 3:09 a.m. (2015-11-12 03:09:53 UTC) #7
Felix Dahlke
New patch set is up. Apart from the things mentioned below, I made two more ...
Nov. 13, 2015, 9:38 a.m. (2015-11-13 09:38:03 UTC) #8
kzar
This version looks a lot better, a lot simpler. One nit below... (It was a ...
Nov. 18, 2015, 5:35 p.m. (2015-11-18 17:35:38 UTC) #9
Sebastian Noack
https://codereview.adblockplus.org/29329537/diff/29330181/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29330181/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode26 sitescripts/content_blocker_lists/bin/generate_lists.py:26: return get_config().get("content_blocker_lists", key) We probably shouldn't call get_config every ...
Nov. 18, 2015, 8:10 p.m. (2015-11-18 20:10:37 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29329537/diff/29330181/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29330181/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode68 sitescripts/content_blocker_lists/bin/generate_lists.py:68: _convert_filter_list(combined, On 2015/11/18 20:10:37, Sebastian Noack wrote: > On ...
Nov. 18, 2015, 11:24 p.m. (2015-11-18 23:24:34 UTC) #11
Felix Dahlke
New patch set is up. https://codereview.adblockplus.org/29329537/diff/29330181/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29330181/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode26 sitescripts/content_blocker_lists/bin/generate_lists.py:26: return get_config().get("content_blocker_lists", key) On ...
Nov. 19, 2015, 11:15 a.m. (2015-11-19 11:15:21 UTC) #12
kzar
LGTM
Nov. 19, 2015, 12:35 p.m. (2015-11-19 12:35:59 UTC) #13
Sebastian Noack
https://codereview.adblockplus.org/29329537/diff/29330418/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29330418/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode63 sitescripts/content_blocker_lists/bin/generate_lists.py:63: if process.wait(): On 2015/11/19 11:15:20, Felix Dahlke wrote: > ...
Nov. 19, 2015, 8:08 p.m. (2015-11-19 20:08:34 UTC) #14
Felix Dahlke
New patch set is up. https://codereview.adblockplus.org/29329537/diff/29330418/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29330418/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode63 sitescripts/content_blocker_lists/bin/generate_lists.py:63: if process.wait(): On 2015/11/19 ...
Nov. 19, 2015, 8:48 p.m. (2015-11-19 20:48:43 UTC) #15
Sebastian Noack
https://codereview.adblockplus.org/29329537/diff/29330514/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29330514/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode65 sitescripts/content_blocker_lists/bin/generate_lists.py:65: if retcode: You can move that out of the ...
Nov. 20, 2015, 12:03 a.m. (2015-11-20 00:03:47 UTC) #16
Felix Dahlke
New patch set is up. https://codereview.adblockplus.org/29329537/diff/29330514/sitescripts/content_blocker_lists/bin/generate_lists.py File sitescripts/content_blocker_lists/bin/generate_lists.py (right): https://codereview.adblockplus.org/29329537/diff/29330514/sitescripts/content_blocker_lists/bin/generate_lists.py#newcode65 sitescripts/content_blocker_lists/bin/generate_lists.py:65: if retcode: On 2015/11/20 ...
Nov. 20, 2015, 7 a.m. (2015-11-20 07:00:56 UTC) #17
Sebastian Noack
LGTM
Nov. 20, 2015, 7:03 a.m. (2015-11-20 07:03:21 UTC) #18
kzar
Nov. 20, 2015, 8:58 a.m. (2015-11-20 08:58:18 UTC) #19
LGTM

Powered by Google App Engine
This is Rietveld