Skip to content

Commit

Permalink
Add Code.co_positions for python 3.11 support
Browse files Browse the repository at this point in the history
The new property `co_postions` needs to be pulled through for Exception handling in python 3.11 to work.

Addresses  celery#377
  • Loading branch information
fredley authored Nov 1, 2022
1 parent 8bf0085 commit 07a0975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions billiard/einfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(self, code):
self.co_lnotab = b''
self.co_names = code.co_names
self.co_nlocals = code.co_nlocals
self.co_positions = code.co_positions
self.co_stacksize = code.co_stacksize
self.co_varnames = ()

Expand Down

0 comments on commit 07a0975

Please sign in to comment.