jvasile/freedombox-privoxy — pull request #8 by tlvince (2013-01-25 06:08:25+00:00)
Title: Fix 'too many values to unpack' issue

Line 12119 of EasyList (24 Jan 2013 21:51 UTC) contains the following (excuse
the unfortunate vulgarity!):

||judgeporn.com/video_pop.php?$$image,~image,popup

This is tripping up abp_import.py, giving the following stack trace:

Unhandled options: ~image, popup
Traceback (most recent call last):
File "./abp_import.py", line 101, in
main()
File "./abp_import.py", line 98, in main
print translate_all(easylist, infile)
File "./abp_import.py", line 71, in translate_all
str += translate(line)
File "./abp_import.py", line 54, in translate
pat, opts = line.split("$",2)
ValueError: too many values to unpack
make: *** [privoxy/easylist.action] Error 1
==> ERROR: A failure occurred in build().
Aborting...
The build failed.

This is a quick fix that simply checks for "$$" and splits accordingly.