summaryrefslogtreecommitdiff
path: root/swiftclient/client.py
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2022-03-21 18:19:50 +0000
committerStephen Finucane <stephenfin@redhat.com>2022-03-21 18:32:00 +0000
commit61ce5ac8244206c5e469e24459e365a5b0767dd5 (patch)
tree44bbb7030a3e8f9fa7c5f29d1fb8c2eddb58cae0 /swiftclient/client.py
parentfa137a5bf1f2a86cc15ebc4d973f245e1543105d (diff)
downloadpython-swiftclient-61ce5ac8244206c5e469e24459e365a5b0767dd5.tar.gz
Remove unnecessary object subclassing
All classes subclass from object by default in Python 3. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I5a1ad57bcc092861ce969759b06a07c880ad3d35
Diffstat (limited to 'swiftclient/client.py')
-rw-r--r--swiftclient/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index df5344d..a9130ab 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -217,7 +217,7 @@ def encode_meta_headers(headers):
return ret
-class _ObjectBody(object):
+class _ObjectBody:
"""
Readable and iterable object body response wrapper.
"""
@@ -331,7 +331,7 @@ class _RetryBody(_ObjectBody):
return buf
-class HTTPConnection(object):
+class HTTPConnection:
def __init__(self, url, proxy=None, cacert=None, insecure=False,
cert=None, cert_key=None, ssl_compression=False,
default_user_agent=None, timeout=None):
@@ -1634,7 +1634,7 @@ def get_capabilities(http_conn):
return parse_api_response(resp_headers, body)
-class Connection(object):
+class Connection:
"""
Convenience class to make requests that will also retry the request