From 7f7c0b9dfef4b60a75e552a287883f04ee5671a3 Mon Sep 17 00:00:00 2001 From: Taylor McKinnon Date: Mon, 22 Apr 2024 12:20:50 -0700 Subject: [PATCH] remove defaults= --- lib/reindex/s3_bucketd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reindex/s3_bucketd.py b/lib/reindex/s3_bucketd.py index 30ba4829..f0ccf1ef 100644 --- a/lib/reindex/s3_bucketd.py +++ b/lib/reindex/s3_bucketd.py @@ -50,7 +50,7 @@ def inner(*args, **kwargs): return urllib.parse.quote(val.encode('utf-8')) return inner -Bucket = namedtuple('Bucket', ['userid', 'name', 'object_lock_enabled'], defaults=[False]) +Bucket = namedtuple('Bucket', ['userid', 'name', 'object_lock_enabled']) MPU = namedtuple('MPU', ['bucket', 'key', 'upload_id']) BucketContents = namedtuple('BucketContents', ['bucket', 'obj_count', 'total_size']) @@ -178,7 +178,7 @@ def get_next_marker(p): buckets = [] for result in payload.get('Contents', []): match = re.match("(\w+)..\|..(\w+.*)", result['key']) - bucket = Bucket(*match.groups()) + bucket = Bucket(*match.groups(), None) if name is None or bucket.name == name: # We need to get the attributes for each bucket to determine if it is locked if self._only_latest_when_locked: