mmnode-ticker: backport fix for Python 3.9
This commit is contained in:
parent
6f2925f797
commit
7c7c2c7da8
3 changed files with 5 additions and 4 deletions
|
|
@ -440,7 +440,8 @@ def gen_data(data):
|
|||
d['percent_change_7d'] = d['quotes']['USD']['percent_change_7d']
|
||||
d['percent_change_30d'] = d['quotes']['USD']['percent_change_30d']
|
||||
d['percent_change_1y'] = d['quotes']['USD']['percent_change_1y']
|
||||
d['last_updated'] = int(datetime.datetime.fromisoformat(d['last_updated']).timestamp())
|
||||
# .replace('Z','+00:00') -- Python 3.9 backport
|
||||
d['last_updated'] = int(datetime.datetime.fromisoformat(d['last_updated'].replace('Z','+00:00')).timestamp())
|
||||
yield (d['id'],d)
|
||||
found[k].add(d[k])
|
||||
wants[k].remove(d[k])
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.3.dev1
|
||||
3.3.dev2
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ classifiers =
|
|||
Development Status :: 5 - Production/Stable
|
||||
|
||||
[options]
|
||||
python_requires = >=3.8
|
||||
python_requires = >=3.9
|
||||
include_package_data = True
|
||||
|
||||
install_requires =
|
||||
mmgen-wallet>=14.1.dev2
|
||||
mmgen-wallet>=14.1.dev8
|
||||
pyyaml
|
||||
yahooquery
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue