Permalink
Browse files

removed unused ads_entry variable

  • Loading branch information...
1 parent d15a435 commit c4ed3cd9414932607134c1e93edeb74bc60a3f8d @int0x80 committed Oct 6, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 privbloxy.py
View
4 privbloxy.py
@@ -27,7 +27,6 @@ def add_ads_action(dir, lines, user_line):
# determine whether ads actionfile entry exists or update
# -----------------------------------------------------------
def check_config(dir):
- ads_entry = False
curr_line = 0
user_line = 0
@@ -37,7 +36,6 @@ def check_config(dir):
# check for ads action file; bail if present
# -----------------------------------------------------------
if line.startswith("actionsfile ads.action"):
- ads_entry = True
break
# -----------------------------------------------------------
# line after user actions was not ads actions
@@ -93,4 +91,4 @@ def set_adlist(dir, url):
adlist_url = "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=one-line&showintro=0&mimetype=plaintext"
check_config(privoxy_dir)
-set_adlist(privoxy_dir, adlist_url)
+set_adlist(privoxy_dir, adlist_url)

0 comments on commit c4ed3cd

Please sign in to comment.