diff --git a/trezorlib/btc.py b/trezorlib/btc.py index 8186c164f5..366914cde4 100644 --- a/trezorlib/btc.py +++ b/trezorlib/btc.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + from . import messages from .tools import CallException, expect, normalize_nfc, session diff --git a/trezorlib/debuglink.py b/trezorlib/debuglink.py index 843f1de469..89ab881321 100644 --- a/trezorlib/debuglink.py +++ b/trezorlib/debuglink.py @@ -13,6 +13,7 @@ # # You should have received a copy of the License along with this library. # If not, see . + from copy import deepcopy from mnemonic import Mnemonic diff --git a/trezorlib/ethereum.py b/trezorlib/ethereum.py index 34ecdf96af..7dc403eb15 100644 --- a/trezorlib/ethereum.py +++ b/trezorlib/ethereum.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + from . import messages as proto from .tools import CallException, expect, normalize_nfc, session diff --git a/trezorlib/exceptions.py b/trezorlib/exceptions.py index b8ae8ba395..90970a6b4a 100644 --- a/trezorlib/exceptions.py +++ b/trezorlib/exceptions.py @@ -1,3 +1,20 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + + class TrezorException(Exception): pass diff --git a/trezorlib/firmware.py b/trezorlib/firmware.py index 5f6fbdefbf..e80a5af552 100644 --- a/trezorlib/firmware.py +++ b/trezorlib/firmware.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + import hashlib from enum import Enum from typing import NewType, Tuple diff --git a/trezorlib/lisk.py b/trezorlib/lisk.py index a86f1af961..7e8ca34643 100644 --- a/trezorlib/lisk.py +++ b/trezorlib/lisk.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + from . import messages as proto from .protobuf import dict_to_proto from .tools import CallException, dict_from_camelcase, expect, normalize_nfc diff --git a/trezorlib/misc.py b/trezorlib/misc.py index 354bd7d361..11ef415650 100644 --- a/trezorlib/misc.py +++ b/trezorlib/misc.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + from . import messages as proto from .tools import expect diff --git a/trezorlib/monero.py b/trezorlib/monero.py index 8b12c316bc..3c815f8249 100644 --- a/trezorlib/monero.py +++ b/trezorlib/monero.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + from . import messages as proto from .tools import expect diff --git a/trezorlib/ontology.py b/trezorlib/ontology.py index cd7f120565..1913ed37e9 100644 --- a/trezorlib/ontology.py +++ b/trezorlib/ontology.py @@ -14,7 +14,6 @@ # You should have received a copy of the License along with this library. # If not, see . - from . import messages from .tools import expect diff --git a/trezorlib/ripple.py b/trezorlib/ripple.py index 4482b83401..9e8c6c70c9 100644 --- a/trezorlib/ripple.py +++ b/trezorlib/ripple.py @@ -14,7 +14,6 @@ # You should have received a copy of the License along with this library. # If not, see . - from . import messages from .protobuf import dict_to_proto from .tools import dict_from_camelcase, expect diff --git a/trezorlib/tests/device_tests/common.py b/trezorlib/tests/device_tests/common.py index e575a154f3..0d351481a9 100644 --- a/trezorlib/tests/device_tests/common.py +++ b/trezorlib/tests/device_tests/common.py @@ -14,7 +14,6 @@ # You should have received a copy of the License along with this library. # If not, see . - from trezorlib import debuglink, device from trezorlib.debuglink import TrezorClientDebugLink from trezorlib.messages.PassphraseSourceType import HOST as PASSPHRASE_ON_HOST diff --git a/trezorlib/tests/device_tests/test_msg_cardano_get_address.py b/trezorlib/tests/device_tests/test_msg_cardano_get_address.py index 174d71af88..355135b62d 100644 --- a/trezorlib/tests/device_tests/test_msg_cardano_get_address.py +++ b/trezorlib/tests/device_tests/test_msg_cardano_get_address.py @@ -14,7 +14,6 @@ # You should have received a copy of the License along with this library. # If not, see . - import pytest from trezorlib.cardano import get_address diff --git a/trezorlib/tests/device_tests/test_msg_cardano_sign_transaction.py b/trezorlib/tests/device_tests/test_msg_cardano_sign_transaction.py index 2111d80d2e..6585dce53a 100644 --- a/trezorlib/tests/device_tests/test_msg_cardano_sign_transaction.py +++ b/trezorlib/tests/device_tests/test_msg_cardano_sign_transaction.py @@ -14,7 +14,6 @@ # You should have received a copy of the License along with this library. # If not, see . - import pytest from trezorlib import cardano, messages diff --git a/trezorlib/tests/support/tx_cache.py b/trezorlib/tests/support/tx_cache.py index 291b739cf8..d7f82bcc61 100644 --- a/trezorlib/tests/support/tx_cache.py +++ b/trezorlib/tests/support/tx_cache.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + import decimal import json import os.path diff --git a/trezorlib/ui.py b/trezorlib/ui.py index 1e95217ce5..598b91d1b9 100644 --- a/trezorlib/ui.py +++ b/trezorlib/ui.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 SatoshiLabs and contributors +# +# This library is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License version 3 +# as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Lesser General Public License for more details. +# +# You should have received a copy of the License along with this library. +# If not, see . + import os import click