From 814ce1bde2e57b403a33f3ed5821e265a5e4c0ce Mon Sep 17 00:00:00 2001 From: "Fabien C. Y. Benureau" Date: Sun, 5 Aug 2018 22:19:56 +0900 Subject: [PATCH] remove timespec argument from isoformat (introduced in 3.6) --- pubs/apis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubs/apis.py b/pubs/apis.py index 5c30bf6..3d57ec9 100644 --- a/pubs/apis.py +++ b/pubs/apis.py @@ -190,7 +190,7 @@ def arxiv2bibtex(arxiv_id, try_doi=True, ui=None): 'date': entry['published'], # not really standard, but a resolution more # granular than months is increasinlgy relevant. '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. if not _is_arxiv_oldstyle(entry_id):