From 838b85133106ff5ef918cbe01e67f26b5655d3bc Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 29 Jan 2018 13:39:47 +0100 Subject: [PATCH] Fix get_supported_version() --- mastodon/Mastodon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 5aca185..0329c10 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -254,11 +254,12 @@ class Mastodon: return False return True - def get_supported_version(self): + @staticmethod + def get_supported_version(): """ Retrieve the maximum version of Mastodon supported by this version of Mastodon.py """ - return __SUPPORTED_MASTODON_VERSION + return Mastodon.__SUPPORTED_MASTODON_VERSION def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", scopes=['read', 'write', 'follow']):