From 6a777788ab9029a5c18c624aad1140b48acf5b72 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 25 Oct 2017 21:33:33 +0200 Subject: [PATCH] trezorctl: use better detection if raw_input replacement is needed --- trezorctl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trezorctl b/trezorctl index 020a70de7e..5b368054d1 100755 --- a/trezorctl +++ b/trezorctl @@ -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: