From 8ba9be1780b480ed94f4facdb1879429672d89eb Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 21 Apr 2017 22:56:50 +0300 Subject: [PATCH] fix pylint warnings --- .pylintrc | 2 +- trezor_agent/device/interface.py | 2 +- trezor_agent/gpg/tests/test_decode.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pylintrc b/.pylintrc index fd1d5a0..183c836 100644 --- a/.pylintrc +++ b/.pylintrc @@ -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 diff --git a/trezor_agent/device/interface.py b/trezor_agent/device/interface.py index 14bd9ad..5d69d9b 100644 --- a/trezor_agent/device/interface.py +++ b/trezor_agent/device/interface.py @@ -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, ' 0 + assert list(decode.parse_packets(f)) def test_has_custom_subpacket():