From 4ec7e203d53861bffee47e9db754d01823c6a3b8 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 26 Sep 2019 16:48:16 +0200 Subject: [PATCH] python: make style --- python/src/trezorlib/log.py | 1 + python/src/trezorlib/transport/bridge.py | 2 +- python/src/trezorlib/transport/protocol.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python/src/trezorlib/log.py b/python/src/trezorlib/log.py index adb8e49a19..8c6aa5a85e 100644 --- a/python/src/trezorlib/log.py +++ b/python/src/trezorlib/log.py @@ -25,6 +25,7 @@ DUMP_BYTES = 5 logging.addLevelName(DUMP_BYTES, "BYTES") + class PrettyProtobufFormatter(logging.Formatter): def format(self, record: logging.LogRecord) -> str: time = self.formatTime(record) diff --git a/python/src/trezorlib/transport/bridge.py b/python/src/trezorlib/transport/bridge.py index 549c89b297..872cbb6122 100644 --- a/python/src/trezorlib/transport/bridge.py +++ b/python/src/trezorlib/transport/bridge.py @@ -22,8 +22,8 @@ from typing import Any, Dict, Iterable, Optional import requests from .. import mapping, protobuf -from . import Transport, TransportException from ..log import DUMP_BYTES +from . import Transport, TransportException LOG = logging.getLogger(__name__) diff --git a/python/src/trezorlib/transport/protocol.py b/python/src/trezorlib/transport/protocol.py index 4628df1f71..8bee47374d 100644 --- a/python/src/trezorlib/transport/protocol.py +++ b/python/src/trezorlib/transport/protocol.py @@ -23,8 +23,8 @@ from typing import Tuple from typing_extensions import Protocol as StructuralType from .. import mapping, protobuf -from . import Transport from ..log import DUMP_BYTES +from . import Transport REPLEN = 64