gh-110196: Fix ipaddress.IPv6Address.__reduce__ (GH-110198)

This commit is contained in:
Tian Gao 2023-10-22 11:50:51 -07:00 committed by GitHub
parent b845a9e145
commit 767f416feb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View file

@ -1970,6 +1970,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.