mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-30 01:58:11 +00:00
tx_api: fix issue on python < 3.5
This commit is contained in:
parent
0f71cbcc44
commit
1de1ff2823
@ -31,7 +31,7 @@ class TxApi(object):
|
|||||||
self.url = url
|
self.url = url
|
||||||
|
|
||||||
def get_url(self, *args):
|
def get_url(self, *args):
|
||||||
return "/".join(map(str, [self.url, "api", *args]))
|
return "/".join(map(str, [self.url, "api"] + list(args)))
|
||||||
|
|
||||||
def fetch_json(self, resource, resourceid):
|
def fetch_json(self, resource, resourceid):
|
||||||
global cache_dir
|
global cache_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user