Index: sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
diff --git a/sitescripts/subscriptions/bin/updateMalwareDomainsList.py b/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
index a2cfb5ff8d46bfe4534dc79f0f03f47e31257519..8f573dc8f86161b38f63f41d671a945530f9567a 100644 |
--- a/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
+++ b/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
@@ -60,7 +60,7 @@ def main(): |
subprocess.check_call(['hg', '-q', 'up', '-R', tempdir, '-r', 'default']) |
path = os.path.join(tempdir, 'malwaredomains_full.txt') |
- file = codecs.open(path, 'wb', encoding='utf-8') |
+ file = codecs.open(path, 'wb') |
Sebastian Noack
2018/07/06 18:23:25
codecs.open() without specifying an encoding is eq
Sebastian Noack
2018/07/09 11:59:29
That is what I'm suggesting.
Tudor Avram
2018/07/09 13:35:42
Done.
|
print >>file, FILTERLIST_HEADER |
@@ -80,7 +80,7 @@ def main(): |
if not domain: |
continue |
- print >>file, '||%s^' % domain.decode('idna') |
+ print >>file, '||%s^' % domain |
file.close() |
if subprocess.check_output(['hg', 'stat', '-R', tempdir]) != '': |