1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

python: make style

This commit is contained in:
matejcik 2019-09-26 16:48:16 +02:00
parent 2e5bdca891
commit 4ec7e203d5
3 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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__)

View File

@ -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