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:
parent
a59eb22bcd
commit
7a3a45321c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user