From efd3494d7c53c0ad0d7d833bc7059d99bbb344a3 Mon Sep 17 00:00:00 2001 From: Matthew Horton Date: Tue, 11 Jan 2022 12:35:19 -0800 Subject: [PATCH] Linting: remove trailing whitespace --- src/maggma/stores/aws.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/maggma/stores/aws.py b/src/maggma/stores/aws.py index 9f7f188c7..c30761575 100644 --- a/src/maggma/stores/aws.py +++ b/src/maggma/stores/aws.py @@ -5,7 +5,7 @@ import threading import warnings -import zlib +import zlib from concurrent.futures import wait from concurrent.futures.thread import ThreadPoolExecutor from hashlib import sha1 @@ -379,11 +379,11 @@ def write_doc_to_s3(self, doc: Dict, search_keys: List[str]): to_isoformat_ceil_ms(doc[self.last_updated_field]) ) - # Any underscores are encoded as double dashes in metadata, since keys with - # underscores may be result in the corresponding HTTP header being stripped + # Any underscores are encoded as double dashes in metadata, since keys with + # underscores may be result in the corresponding HTTP header being stripped # by certain server configurations (e.g. default nginx), leading to: - # `botocore.exceptions.ClientError: An error occurred (AccessDenied) when - # calling the PutObject operation: There were headers present in the request + # `botocore.exceptions.ClientError: An error occurred (AccessDenied) when + # calling the PutObject operation: There were headers present in the request # which were not signed` # Metadata stored in the MongoDB index (self.index) is stored unchanged. s3_bucket.put_object(