Add some test cases for better unit test code coverage. Fix bug found by new TestCom...
[python-rwhoisd.git] / rwhoisd / v6addr.py
index 2a33dc0..a169e5e 100644 (file)
@@ -133,7 +133,7 @@ def inet_pton(af, ip):
 
 def inet_ntop(af, packed_ip):
     if af == socket.AF_INET:
-        return socket.inet.ntoa(packed_ip)
+        return socket.inet_ntoa(packed_ip)
     if af == socket.AF_INET6:
         return v6addr_to_str(packed_ip)
     raise socket.error("Address family not supported by protocol")