Skip to content

Commit

Permalink
Remove superfluous import by using the exception from the namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 17, 2022
1 parent 002de2d commit d666c5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions keyring/devpi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@

import pluggy

import keyring
from keyring.errors import KeyringError
import keyring.errors


hookimpl = pluggy.HookimplMarker("devpiclient")
Expand All @@ -25,7 +24,7 @@ def wrapper(url, username):

@hookimpl()
@restore_signature
@suppress(KeyringError)
@suppress(keyring.errors.KeyringError)
def devpiclient_get_password(url, username):
"""
>>> pluggy._hooks.varnames(devpiclient_get_password)
Expand Down

0 comments on commit d666c5c

Please sign in to comment.