Add close() method to Python class
This commit is contained in:
		| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user