Add punycode support

This commit is contained in:
Larry Kim 2013-05-27 21:35:54 +09:00
parent fa790c7b39
commit 497d7ea482

View File

@ -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__))