gpg: fix pep8/pylint warning
This commit is contained in:
parent
0b0f60dd89
commit
4c07b360cd
@ -5,7 +5,6 @@ import hashlib
|
||||
import io
|
||||
import logging
|
||||
import struct
|
||||
import subprocess
|
||||
|
||||
import ecdsa
|
||||
import ed25519
|
||||
|
@ -2,7 +2,7 @@
|
||||
import logging
|
||||
import time
|
||||
|
||||
from . import decode, keyring, proto
|
||||
from . import keyring, proto
|
||||
from .. import client, factory, formats, util
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -1,6 +1,5 @@
|
||||
"""Tools for doing signature using gpg-agent."""
|
||||
|
||||
import argparse
|
||||
import binascii
|
||||
import io
|
||||
import logging
|
||||
@ -147,7 +146,8 @@ def get_public_key(user_id, use_custom=False):
|
||||
args = ['gpg2', '--export'] + ([user_id] if user_id else [])
|
||||
pubkey_bytes = subprocess.check_output(args=args)
|
||||
if pubkey_bytes:
|
||||
return decode.load_public_key(io.BytesIO(pubkey_bytes), use_custom=use_custom)
|
||||
return decode.load_public_key(io.BytesIO(pubkey_bytes),
|
||||
use_custom=use_custom)
|
||||
else:
|
||||
log.error('could not find public key %r in local GPG keyring', user_id)
|
||||
raise KeyError(user_id)
|
||||
|
Loading…
Reference in New Issue
Block a user