diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2022-03-21 18:19:50 +0000 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2022-03-21 18:32:00 +0000 |
commit | 61ce5ac8244206c5e469e24459e365a5b0767dd5 (patch) | |
tree | 44bbb7030a3e8f9fa7c5f29d1fb8c2eddb58cae0 /swiftclient/service.py | |
parent | fa137a5bf1f2a86cc15ebc4d973f245e1543105d (diff) | |
download | python-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/service.py')
-rw-r--r-- | swiftclient/service.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/swiftclient/service.py b/swiftclient/service.py index 289e29e..4a7b120 100644 --- a/swiftclient/service.py +++ b/swiftclient/service.py @@ -315,7 +315,7 @@ def split_headers(options, prefix=''): return headers -class SwiftUploadObject(object): +class SwiftUploadObject: """ Class for specifying an object upload, allowing the object source, name and options to be specified separately for each individual object. @@ -341,7 +341,7 @@ class SwiftUploadObject(object): self.source = source -class SwiftPostObject(object): +class SwiftPostObject: """ Class for specifying an object post, allowing the headers/metadata to be specified separately for each individual object. @@ -355,7 +355,7 @@ class SwiftPostObject(object): self.options = options -class SwiftDeleteObject(object): +class SwiftDeleteObject: """ Class for specifying an object delete, allowing the headers/metadata to be specified separately for each individual object. @@ -369,7 +369,7 @@ class SwiftDeleteObject(object): self.options = options -class SwiftCopyObject(object): +class SwiftCopyObject: """ Class for specifying an object copy, allowing the destination/headers/metadata/fresh_metadata to be specified @@ -405,7 +405,7 @@ class SwiftCopyObject(object): ) -class _SwiftReader(object): +class _SwiftReader: """ Class for downloading objects from swift and raising appropriate errors on failures caused by either invalid md5sum or size of the @@ -470,7 +470,7 @@ class _SwiftReader(object): return self._actual_read -class SwiftService(object): +class SwiftService: """ Service for performing swift operations """ |