Skip to content

Commit

Permalink
Rely on Python 3.8 syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 4, 2024
1 parent 306c790 commit 583edd8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions jaraco/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,7 @@ class on_interrupt(contextlib.ContextDecorator):
... on_interrupt('ignore')(do_interrupt)()
"""

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

Expand Down

0 comments on commit 583edd8

Please sign in to comment.