1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-05 14:59:44 +00:00

flake8: fix complaints in new code.

One of these days I'm going to automate this check.
This commit is contained in:
matejcik 2018-03-20 13:29:33 +01:00
parent 7e1d962799
commit 4b59d9191c

View File

@ -778,14 +778,14 @@ class ProtocolMixin(object):
tx.inputs = inputs
tx.outputs = outputs
txes = { None: tx }
txes = {None: tx}
for inp in inputs:
if inp.prev_hash in txes:
continue
if inp.script_type in (proto.InputScriptType.SPENDP2SHWITNESS,
proto.InputScriptType.SPENDWITNESS):
proto.InputScriptType.SPENDWITNESS):
continue
if not self.tx_api: