From 7a3a45321cc7bf37c5b46dd44376ddd2e72d3d9d Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 25 May 2016 02:16:06 +0200 Subject: [PATCH] import requests just in firmware_update function --- trezorctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trezorctl b/trezorctl index 91ab2a1aa8..d875369a5a 100755 --- a/trezorctl +++ b/trezorctl @@ -6,7 +6,6 @@ import argparse import json import base64 import tempfile -import requests from io import BytesIO from trezorlib.client import TrezorClient, TrezorClientDebug @@ -209,6 +208,7 @@ class Commands(object): return ret def firmware_update(self, args): + import requests if args.file: fp = open(args.file, 'rb').read() elif args.url: