summaryrefslogtreecommitdiff
path: root/swiftclient/utils.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/utils.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/utils.py')
-rw-r--r--swiftclient/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/swiftclient/utils.py b/swiftclient/utils.py
index 03e5e7b..e99ed37 100644
--- a/swiftclient/utils.py
+++ b/swiftclient/utils.py
@@ -254,7 +254,7 @@ def report_traceback():
return None, None
-class NoopMD5(object):
+class NoopMD5:
def __init__(self, *a, **kw):
pass
@@ -265,7 +265,7 @@ class NoopMD5(object):
return ''
-class ReadableToIterable(object):
+class ReadableToIterable:
"""
Wrap a filelike object and act as an iterator.
@@ -314,7 +314,7 @@ class ReadableToIterable(object):
return self
-class LengthWrapper(object):
+class LengthWrapper:
"""
Wrap a filelike object with a maximum length.