Add close() method to Python class
This commit is contained in:
parent
58b0439d9d
commit
f3c8feb3c5
|
@ -88,3 +88,6 @@ class IPToGeo(object):
|
|||
# convert to string
|
||||
country_code = '%c%c' % (country_code[0], country_code[1])
|
||||
return (ip, country_code)
|
||||
|
||||
def close(self):
|
||||
self._socket.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user