summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2012-05-31 22:20:13 (GMT)
committerHynek Schlawack <hs@ox.cx>2012-05-31 22:20:13 (GMT)
commit7e0229e90d4161ea7f81f325ac883ecd85782f71 (patch)
tree6eda5384cb65f4d524715a883b56518009d3a8ca
parent1be413e366be7bed676074b7f395b2a20a10ac47 (diff)
downloadcpython-7e0229e90d4161ea7f81f325ac883ecd85782f71.zip
cpython-7e0229e90d4161ea7f81f325ac883ecd85782f71.tar.gz
cpython-7e0229e90d4161ea7f81f325ac883ecd85782f71.tar.bz2
#14814: Remove stale __hex__ method from ipaddress
Obsolete 2.x method.
-rw-r--r--Lib/ipaddress.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/ipaddress.py b/Lib/ipaddress.py
index cb35685..90c69a4 100644
--- a/Lib/ipaddress.py
+++ b/Lib/ipaddress.py
@@ -482,9 +482,6 @@ class _BaseAddress(_IPAddressBase):
def __int__(self):
return self._ip
- def __hex__(self):
- return hex(self._ip)
-
def __eq__(self, other):
try:
return (self._ip == other._ip