mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198) (GH-111191)
(cherry picked from commit 767f416feb
)
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
This commit is contained in:
parent
06fe8685a1
commit
9e73c71aa9
3 changed files with 11 additions and 0 deletions
|
@ -1938,6 +1938,9 @@ class IPv6Address(_BaseV6, _BaseAddress):
|
|||
return False
|
||||
return self._scope_id == getattr(other, '_scope_id', None)
|
||||
|
||||
def __reduce__(self):
|
||||
return (self.__class__, (str(self),))
|
||||
|
||||
@property
|
||||
def scope_id(self):
|
||||
"""Identifier of a particular zone of the address's scope.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue