From 61ce5ac8244206c5e469e24459e365a5b0767dd5 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 21 Mar 2022 18:19:50 +0000 Subject: Remove unnecessary object subclassing All classes subclass from object by default in Python 3. Signed-off-by: Stephen Finucane Change-Id: I5a1ad57bcc092861ce969759b06a07c880ad3d35 --- swiftclient/service.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'swiftclient/service.py') 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 """ -- cgit v1.2.1