From f3c8feb3c50becabfcccc728723a710a033ede89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 4 Feb 2016 20:39:50 +0100 Subject: [PATCH] Add close() method to Python class --- tests/iptogeo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/iptogeo.py b/tests/iptogeo.py index 6adca16..3da3568 100644 --- a/tests/iptogeo.py +++ b/tests/iptogeo.py @@ -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()