Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def lookupIPInfo(self):
self.ip_info = IPInfo.lookupIPInfo(self.ip)
def __init__(self, ABCTorrent):
self.torrent = ABCTorrent
self.statistics = None
self.ip = str(socket.gethostbyname(socket.gethostname()))
self.ip_info = IPInfo.lookupIPInfo(self.ip)
self.display = False
#print "create my peer"