summaryrefslogtreecommitdiffstats
path: root/netwerk/dns/prepare_tlds.py
diff options
context:
space:
mode:
Diffstat (limited to 'netwerk/dns/prepare_tlds.py')
-rw-r--r--netwerk/dns/prepare_tlds.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/netwerk/dns/prepare_tlds.py b/netwerk/dns/prepare_tlds.py
index 53d0bf526d..adebcec487 100644
--- a/netwerk/dns/prepare_tlds.py
+++ b/netwerk/dns/prepare_tlds.py
@@ -4,11 +4,10 @@
import codecs
import encodings.idna
-import imp
-import os
import re
import sys
-from make_dafsa import words_to_cxx, words_to_bin
+
+from make_dafsa import words_to_bin, words_to_cxx
"""
Processes a file containing effective TLD data. See the following URL for a
@@ -22,7 +21,6 @@ http://wiki.mozilla.org/Gecko:Effective_TLD_Service
def getEffectiveTLDs(path):
file = codecs.open(path, "r", "UTF-8")
- entries = []
domains = set()
for line in file:
# line always contains a line terminator unless the file is empty