mirror of
https://github.com/romanz/amodem.git
synced 2026-04-19 20:55:59 +08:00
gpg: remove unused function (_time_format)
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
"""Create GPG ECDSA signatures and public keys using TREZOR device."""
|
"""Create GPG ECDSA signatures and public keys using TREZOR device."""
|
||||||
import io
|
import io
|
||||||
import logging
|
import logging
|
||||||
import time
|
|
||||||
|
|
||||||
from . import decode, keyring, protocol
|
from . import decode, keyring, protocol
|
||||||
from .. import util
|
from .. import util
|
||||||
@@ -9,10 +8,6 @@ from .. import util
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def _time_format(t):
|
|
||||||
return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(t))
|
|
||||||
|
|
||||||
|
|
||||||
def create_primary(user_id, pubkey, signer_func):
|
def create_primary(user_id, pubkey, signer_func):
|
||||||
"""Export new primary GPG public key, ready for "gpg2 --import"."""
|
"""Export new primary GPG public key, ready for "gpg2 --import"."""
|
||||||
pubkey_packet = protocol.packet(tag=6, blob=pubkey.data())
|
pubkey_packet = protocol.packet(tag=6, blob=pubkey.data())
|
||||||
|
|||||||
Reference in New Issue
Block a user