From d19b7185d8d92a0338352b2c2169a9c3bd339ee8 Mon Sep 17 00:00:00 2001 From: halcy Date: Fri, 18 Nov 2022 00:06:24 +0200 Subject: try to fix tests, again --- mastodon/Mastodon.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 44e3b52..493d485 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -519,7 +519,7 @@ class Mastodon: return datetime.datetime.fromtimestamp(epoch_time) else: raise MastodonAPIError("No server time in response.") - + @staticmethod def get_supported_version(): """ @@ -3409,8 +3409,7 @@ class Mastodon: if v != None: try: if isinstance(v, int): - json_object[k] = datetime.datetime.fromtimestamp( - v, pytz.utc) + json_object[k] = datetime.datetime.fromtimestamp(v, pytz.utc) else: json_object[k] = dateutil.parser.parse(v) except: -- cgit v1.2.3