Use IDNA-encoded string when parsing whois result
This commit is contained in:
parent
de86e96c0f
commit
0b66703e59
@ -10,6 +10,7 @@ import error
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import datetime
|
||||||
import time
|
import time
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ class Parser(object):
|
|||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
logging.debug("__init__: DEBUG is set to True")
|
logging.debug("__init__: DEBUG is set to True")
|
||||||
|
|
||||||
self.domain = domain
|
self.domain = unicode(domain, "utf-8").encode("idna")
|
||||||
self.text = text
|
self.text = text
|
||||||
self.whoisServer = whoisServer and whoisServer or "default"
|
self.whoisServer = whoisServer and whoisServer or "default"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user