mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
#14814: Remove stale __hex__ method from ipaddress
Obsolete 2.x method.
This commit is contained in:
parent
1be413e366
commit
7e0229e90d
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue