mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 19:38:09 +00:00
trezorctl: use better detection if raw_input replacement is needed
This commit is contained in:
parent
cef2ba0129
commit
6a777788ab
@ -25,6 +25,7 @@ import binascii
|
|||||||
import click
|
import click
|
||||||
import functools
|
import functools
|
||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
from trezorlib.client import TrezorClient, TrezorClientVerbose, CallException
|
from trezorlib.client import TrezorClient, TrezorClientVerbose, CallException
|
||||||
import trezorlib.types_pb2 as types
|
import trezorlib.types_pb2 as types
|
||||||
@ -452,10 +453,8 @@ def sign_tx(connect, coin):
|
|||||||
raise Exception('Coin "%s" is not supported' % coin)
|
raise Exception('Coin "%s" is not supported' % coin)
|
||||||
client.set_tx_api(txapi)
|
client.set_tx_api(txapi)
|
||||||
|
|
||||||
try:
|
if sys.version_info.major < 3:
|
||||||
input = raw_input
|
input = raw_input
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
inputs = []
|
inputs = []
|
||||||
while True:
|
while True:
|
||||||
|
Loading…
Reference in New Issue
Block a user