remove timespec argument from isoformat (introduced in 3.6)
This commit is contained in:
parent
647fea8ddb
commit
814ce1bde2
@ -190,7 +190,7 @@ def arxiv2bibtex(arxiv_id, try_doi=True, ui=None):
|
|||||||
'date': entry['published'], # not really standard, but a resolution more
|
'date': entry['published'], # not really standard, but a resolution more
|
||||||
# granular than months is increasinlgy relevant.
|
# granular than months is increasinlgy relevant.
|
||||||
'url': entry['link'],
|
'url': entry['link'],
|
||||||
'urldate': datetime.datetime.utcnow().isoformat(timespec='seconds') + 'Z' # can't hurt.
|
'urldate': datetime.datetime.utcnow().isoformat() + 'Z' # can't hurt.
|
||||||
}]
|
}]
|
||||||
# we don't add eprintclass for old-style ids, as it is in the id already.
|
# we don't add eprintclass for old-style ids, as it is in the id already.
|
||||||
if not _is_arxiv_oldstyle(entry_id):
|
if not _is_arxiv_oldstyle(entry_id):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user