aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/concurrent/interpreters/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/concurrent/interpreters/__init__.py')
-rw-r--r--Lib/concurrent/interpreters/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/concurrent/interpreters/__init__.py b/Lib/concurrent/interpreters/__init__.py
index 0fd661249a2..aa46a2b37a4 100644
--- a/Lib/concurrent/interpreters/__init__.py
+++ b/Lib/concurrent/interpreters/__init__.py
@@ -146,12 +146,8 @@ class Interpreter:
self._decref()
# for pickling:
- def __getnewargs__(self):
- return (self._id,)
-
- # for pickling:
- def __getstate__(self):
- return None
+ def __reduce__(self):
+ return (type(self), (self._id,))
def _decref(self):
if not self._ownsref: