diff --git a/src/apps/playground/__init__.py b/src/apps/playground/__init__.py index 417b6ffd..c083b573 100644 --- a/src/apps/playground/__init__.py +++ b/src/apps/playground/__init__.py @@ -208,7 +208,7 @@ def layout_tap_to_confirm(address, amount, currency): @unimport_func def zprava(): - from _io import BytesIO + from uio import BytesIO from trezor.messages.GetAddress import GetAddress diff --git a/src/lib/protobuf/protobuf.py b/src/lib/protobuf/protobuf.py index f36ec9a4..ab7bc583 100644 --- a/src/lib/protobuf/protobuf.py +++ b/src/lib/protobuf/protobuf.py @@ -2,7 +2,7 @@ # eigenein (c) 2011 # http://eigenein.me/protobuf/ -from _io import BytesIO +from uio import BytesIO import ustruct # Types. ----------------------------------------------------------------------- diff --git a/src/trezor/log.py b/src/trezor/log.py index e8047ff9..59b8577f 100644 --- a/src/trezor/log.py +++ b/src/trezor/log.py @@ -1,4 +1,4 @@ -import _io +import uio import sys import utime @@ -41,7 +41,7 @@ def error(name, msg, *args): _log(name, ERROR, msg, *args) def exception(name, exc): - out = _io.StringIO() + out = uio.StringIO() sys.print_exception(exc, out) _log(name, ERROR, out.getvalue())