mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
python: make style
This commit is contained in:
parent
2e5bdca891
commit
4ec7e203d5
@ -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)
|
||||
|
@ -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__)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user