1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 03:48:09 +00:00

import requests just in firmware_update function

This commit is contained in:
Pavol Rusnak 2016-05-25 02:16:06 +02:00
parent a59eb22bcd
commit 7a3a45321c
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -6,7 +6,6 @@ import argparse
import json import json
import base64 import base64
import tempfile import tempfile
import requests
from io import BytesIO from io import BytesIO
from trezorlib.client import TrezorClient, TrezorClientDebug from trezorlib.client import TrezorClient, TrezorClientDebug
@ -209,6 +208,7 @@ class Commands(object):
return ret return ret
def firmware_update(self, args): def firmware_update(self, args):
import requests
if args.file: if args.file:
fp = open(args.file, 'rb').read() fp = open(args.file, 'rb').read()
elif args.url: elif args.url: