From 31bbb20324bddc985d61384a4182709c83ff7454 Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Tue, 5 Mar 2024 20:07:28 -0500 Subject: [PATCH] Make this fix compatible with latest master --- toot/api.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/toot/api.py b/toot/api.py index 470eabb..2c95249 100644 --- a/toot/api.py +++ b/toot/api.py @@ -8,7 +8,7 @@ from typing import BinaryIO, List, Optional from urllib.parse import urlparse, urlencode, quote from toot import App, User, http, CLIENT_NAME, CLIENT_WEBSITE -from toot.exceptions import AuthenticationError, ApiError, ConsoleError +from toot.exceptions import ApiError, ConsoleError from toot.utils import drop_empty_values, str_bool, str_bool_nullable @@ -76,10 +76,6 @@ def _status_toggle_action(app, user, status_id, action, data=None): def create_app(domain, scheme='https'): url = f"{scheme}://{domain}/api/v1/apps" -#def create_app(base_url): -# url = f"{base_url}/api/v1/apps" - - json = { 'client_name': CLIENT_NAME, 'redirect_uris': 'urn:ietf:wg:oauth:2.0:oob',