Update code for Python3

This commit is contained in:
2020-12-09 13:24:29 +01:00
parent f457f4e390
commit c0e3e0a801
3 changed files with 36 additions and 24 deletions

View File

@@ -19,7 +19,7 @@
#
import re
import urllib
import urllib.parse
from iwla import IWLA
from iplugin import IPlugin
@@ -113,7 +113,7 @@ class IWLAPostAnalysisReferers(IPlugin):
if groups:
key_phrase = groups.groupdict()['key_phrase']
try:
key_phrase = urllib.unquote_plus(key_phrase).decode('utf8')
key_phrase = urllib.parse.unquote_plus(key_phrase)
except Exception as e:
print(e)
continue