Skip to content

Commit

Permalink
Add Python 3.7 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Nov 19, 2022
1 parent cfd3997 commit 5bf0042
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jaraco/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,13 @@ class on_interrupt(contextlib.ContextDecorator):
... on_interrupt('ignore')(do_interrupt)()
"""

def __init__(self, action='error', /, code=1):
def __init__(
self,
action='error',
# py3.7 compat
# /,
code=1,
):
self.action = action
self.code = code

Expand Down

0 comments on commit 5bf0042

Please sign in to comment.