Add punycode support
This commit is contained in:
parent
fa790c7b39
commit
497d7ea482
@ -21,7 +21,7 @@ class Whois(object):
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
logging.debug("__init__: DEBUG is set to True")
|
||||
|
||||
self.domain = domain
|
||||
self.domain = unicode(domain, "utf-8").encode("idna")
|
||||
self.tld = self.domain.split(".")[-1]
|
||||
|
||||
self.currPath = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user