aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-01-29 13:39:47 +0100
committerLorenz Diener <[email protected]>2018-01-29 13:39:47 +0100
commit838b85133106ff5ef918cbe01e67f26b5655d3bc (patch)
treed9659ff14685a4b6823b460efa8234f26a9c799f /mastodon
parent216a4447b4eb3cc25b65f40b8d395b0587e9c6c0 (diff)
downloadmastodon.py-838b85133106ff5ef918cbe01e67f26b5655d3bc.tar.gz
Fix get_supported_version()
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py5
1 files 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:
254 return False 254 return False
255 return True 255 return True
256 256
257 def get_supported_version(self): 257 @staticmethod
258 def get_supported_version():
258 """ 259 """
259 Retrieve the maximum version of Mastodon supported by this version of Mastodon.py 260 Retrieve the maximum version of Mastodon supported by this version of Mastodon.py
260 """ 261 """
261 return __SUPPORTED_MASTODON_VERSION 262 return Mastodon.__SUPPORTED_MASTODON_VERSION
262 263
263 def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", 264 def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob",
264 scopes=['read', 'write', 'follow']): 265 scopes=['read', 'write', 'follow']):
Powered by cgit v1.2.3 (git 2.41.0)