diff --git a/src/apps/playground/__init__.py b/src/apps/playground/__init__.py index 417b6ffd37..c083b573e8 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 f36ec9a4e5..ab7bc5837c 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 e8047ff9dc..59b8577f00 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())