mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
import requests just in firmware_update function
This commit is contained in:
parent
a59eb22bcd
commit
7a3a45321c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user