diff options
Diffstat (limited to 'Lib/test/support/channels.py')
-rw-r--r-- | Lib/test/support/channels.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/support/channels.py b/Lib/test/support/channels.py index b2de24d9d3e..fab1797659b 100644 --- a/Lib/test/support/channels.py +++ b/Lib/test/support/channels.py @@ -105,12 +105,8 @@ class _ChannelEnd: return other._id == self._id # for pickling: - def __getnewargs__(self): - return (int(self._id),) - - # for pickling: - def __getstate__(self): - return None + def __reduce__(self): + return (type(self), (int(self._id),)) @property def id(self): |