Skip to content

Commit

Permalink
Re-use 'suppress' from jaraco.context.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 22, 2024
1 parent 1e02fde commit 8692ca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions keyring/devpi_client.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
import contextlib
import functools

import pluggy
from jaraco.context import suppress

import keyring.errors

hookimpl = pluggy.HookimplMarker("devpiclient")


# https://github.com/jaraco/jaraco.context/blob/c3a9b739/jaraco/context.py#L205
suppress = type('suppress', (contextlib.suppress, contextlib.ContextDecorator), {})


def restore_signature(func):
# workaround for pytest-dev/pluggy#358
@functools.wraps(func)
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ install_requires =
jaraco.classes
importlib_resources; python_version < "3.9"
jaraco.functools
jaraco.context

[options.extras_require]
testing =
Expand Down

0 comments on commit 8692ca2

Please sign in to comment.