fix pylint warnings

This commit is contained in:
Roman Zeyde 2017-04-21 22:56:50 +03:00
parent b2bc87c0c7
commit 8ba9be1780
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB
3 changed files with 3 additions and 4 deletions

View File

@ -1,2 +1,2 @@
[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

View File

@ -82,7 +82,7 @@ class Identity(object):
s = io.BytesIO(bytearray(digest))
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'))
return [(hardened | value) for value in address_n]

View File

@ -41,8 +41,7 @@ def public_key_path(request):
def test_gpg_files(public_key_path): # pylint: disable=redefined-outer-name
with open(public_key_path, 'rb') as f:
packets = list(decode.parse_packets(f))
assert len(packets) > 0
assert list(decode.parse_packets(f))
def test_has_custom_subpacket():