From 933bc12985ee1a7653a72396fb90654a7e834425 Mon Sep 17 00:00:00 2001 From: Dominik Kozaczko Date: Tue, 27 Sep 2016 22:49:51 +0200 Subject: [PATCH] fix imports (#72) --- trezorlib/client.py | 2 +- trezorlib/transport.py | 4 +++- trezorlib/transport_pipe.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/trezorlib/client.py b/trezorlib/client.py index 3964c78ec..cb614ec7b 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -1,4 +1,4 @@ -from __future__ import print_function +from __future__ import print_function, absolute_import import os import sys diff --git a/trezorlib/transport.py b/trezorlib/transport.py index 19d8aabf6..201b35a97 100644 --- a/trezorlib/transport.py +++ b/trezorlib/transport.py @@ -1,5 +1,7 @@ +from __future__ import absolute_import + import struct -import mapping +from . import mapping import binascii class NotImplementedException(Exception): diff --git a/trezorlib/transport_pipe.py b/trezorlib/transport_pipe.py index d59db4e5a..c7c94f2f2 100644 --- a/trezorlib/transport_pipe.py +++ b/trezorlib/transport_pipe.py @@ -1,7 +1,7 @@ from __future__ import print_function import os from select import select -from transport import TransportV1 +from .transport import TransportV1 """PipeTransport implements fake wire transport over local named pipe. Use this transport for talking with trezor simulator."""