trezorctl: use better detection if raw_input replacement is needed

This commit is contained in:
Pavol Rusnak 2017-10-25 21:33:33 +02:00
parent cef2ba0129
commit 6a777788ab
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 2 additions and 3 deletions

View File

@ -25,6 +25,7 @@ import binascii
import click
import functools
import json
import sys
from trezorlib.client import TrezorClient, TrezorClientVerbose, CallException
import trezorlib.types_pb2 as types
@ -452,10 +453,8 @@ def sign_tx(connect, coin):
raise Exception('Coin "%s" is not supported' % coin)
client.set_tx_api(txapi)
try:
if sys.version_info.major < 3:
input = raw_input
except:
pass
inputs = []
while True: