Skip to content

Commit

Permalink
don't register LineIterator if PYPY
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Jul 6, 2023
1 parent 9c2183f commit 9338a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dill/_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9338a48

Please sign in to comment.