Index: sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
=================================================================== |
--- a/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
+++ b/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
@@ -17,11 +17,9 @@ |
import os, subprocess, codecs, urllib, zipfile, tempfile, shutil |
from StringIO import StringIO |
-from sitescripts.utils import get_config, setupStderr |
+from sitescripts.utils import get_config |
if __name__ == '__main__': |
- setupStderr() |
- |
repository = get_config().get('subscriptionDownloads', 'malwaredomains_repository') |
tempdir = tempfile.mkdtemp(prefix='malwaredomains') |
try: |
@@ -44,7 +42,7 @@ |
for line in str(zip.read(info.filename)).splitlines(): |
if not line: |
continue |
- print >>file, '||%s^' % line.strip().decode('iso-8859-1') |
+ print >>file, '||%s^' % line.strip().decode('idna') |
file.close(); |
if subprocess.check_output(['hg', 'stat', '-R', tempdir]) != '': |