diff options
Diffstat (limited to 'Lib/concurrent/interpreters/_queues.py')
-rw-r--r-- | Lib/concurrent/interpreters/_queues.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/concurrent/interpreters/_queues.py b/Lib/concurrent/interpreters/_queues.py index 99987f2f692..9c12b2c8c24 100644 --- a/Lib/concurrent/interpreters/_queues.py +++ b/Lib/concurrent/interpreters/_queues.py @@ -129,12 +129,8 @@ class Queue: return hash(self._id) # for pickling: - def __getnewargs__(self): - return (self._id,) - - # for pickling: - def __getstate__(self): - return None + def __reduce__(self): + return (type(self), (self._id,)) def _set_unbound(self, op, items=None): assert not hasattr(self, '_unbound') |