Browse code

s3cmd: python 3.8 compat

Konstantin Shalygin authored on 2019/11/18 13:28:53
Showing 1 changed files
... ...
@@ -317,9 +317,9 @@ def cmd_expiration_set(args):
317 317
             raise ParameterError("Expecting S3 URI with just the bucket name set instead of '%s'" % arg)
318 318
         try:
319 319
             response = s3.expiration_set(uri, cfg.bucket_location)
320
-            if response["status"] is 200:
320
+            if response["status"] == 200:
321 321
                 output(u"Bucket '%s': expiration configuration is set." % (uri.uri()))
322
-            elif response["status"] is 204:
322
+            elif response["status"] == 204:
323 323
                 output(u"Bucket '%s': expiration configuration is deleted." % (uri.uri()))
324 324
         except S3Error as e:
325 325
             if e.info["Code"] in S3.codes: