mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 13:46:30 +08:00
fix pylint warnings
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=invalid-name, missing-docstring, locally-disabled, unbalanced-tuple-unpacking
|
disable=invalid-name, missing-docstring, locally-disabled, unbalanced-tuple-unpacking,no-else-return
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class Identity(object):
|
|||||||
s = io.BytesIO(bytearray(digest))
|
s = io.BytesIO(bytearray(digest))
|
||||||
|
|
||||||
hardened = 0x80000000
|
hardened = 0x80000000
|
||||||
addr_0 = [13, 17][bool(ecdh)]
|
addr_0 = 17 if bool(ecdh) else 13
|
||||||
address_n = [addr_0] + list(util.recv(s, '<LLLL'))
|
address_n = [addr_0] + list(util.recv(s, '<LLLL'))
|
||||||
return [(hardened | value) for value in address_n]
|
return [(hardened | value) for value in address_n]
|
||||||
|
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ def public_key_path(request):
|
|||||||
|
|
||||||
def test_gpg_files(public_key_path): # pylint: disable=redefined-outer-name
|
def test_gpg_files(public_key_path): # pylint: disable=redefined-outer-name
|
||||||
with open(public_key_path, 'rb') as f:
|
with open(public_key_path, 'rb') as f:
|
||||||
packets = list(decode.parse_packets(f))
|
assert list(decode.parse_packets(f))
|
||||||
assert len(packets) > 0
|
|
||||||
|
|
||||||
|
|
||||||
def test_has_custom_subpacket():
|
def test_has_custom_subpacket():
|
||||||
|
|||||||
Reference in New Issue
Block a user