From 9338a483f4b9eaaac91f95400e8fe5595e6ca775 Mon Sep 17 00:00:00 2001 From: mmckerns Date: Wed, 5 Jul 2023 22:37:05 -0400 Subject: [PATCH] don't register LineIterator if PYPY --- dill/_objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dill/_objects.py b/dill/_objects.py index 0107a921..dc2c5c38 100644 --- a/dill/_objects.py +++ b/dill/_objects.py @@ -395,7 +395,7 @@ class _Struct(ctypes.Structure): except ImportError: pass -if sys.hexversion >= 0x30a00a0: +if sys.hexversion >= 0x30a00a0 and not IS_PYPY: x['LineIteratorType'] = compile('3', '', 'eval').co_lines() if sys.hexversion >= 0x30b00b0: