aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_oauth1.py
diff options
context:
space:
mode:
authorBen Sturmfels <ben@sturm.com.au>2021-03-05 23:12:19 +1100
committerBen Sturmfels <ben@sturm.com.au>2021-03-05 23:12:19 +1100
commitdec47c7102cf0aa3a4debf002928db8e460c0d71 (patch)
tree47631fc15c7af172aa699506adf3d76d3a71976c /mediagoblin/tests/test_oauth1.py
parent5f3a782fef4855e10b7259624a14d8afb0f7be93 (diff)
downloadmediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.tar.lz
mediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.tar.xz
mediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.zip
Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.
Diffstat (limited to 'mediagoblin/tests/test_oauth1.py')
-rw-r--r--mediagoblin/tests/test_oauth1.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_oauth1.py b/mediagoblin/tests/test_oauth1.py
index e41a68c7..fc4a2b01 100644
--- a/mediagoblin/tests/test_oauth1.py
+++ b/mediagoblin/tests/test_oauth1.py
@@ -25,7 +25,7 @@ from mediagoblin.tools import template, pluginapi
from mediagoblin.tests.tools import fixture_add_user
-class TestOAuth(object):
+class TestOAuth:
MIME_FORM = "application/x-www-form-urlencoded"
MIME_JSON = "application/json"
@@ -123,7 +123,7 @@ class TestOAuth(object):
def to_authorize_headers(self, data):
headers = ""
for key, value in data.items():
- headers += '{0}="{1}",'.format(key, value)
+ headers += '{}="{}",'.format(key, value)
return {"Authorization": "OAuth " + headers[:-1]}
def test_request_token(self):