diff --git a/s3transfer/crt.py b/s3transfer/crt.py index b5e07b2e..7927304e 100644 --- a/s3transfer/crt.py +++ b/s3transfer/crt.py @@ -826,7 +826,9 @@ def _default_get_make_request_args( # So transform string like "delete_object" -> "DeleteObject". operation_name = None if crt_request_type == S3RequestType.DEFAULT: - operation_name = ''.join(x.title() for x in request_type.split('_')) + operation_name = ''.join( + x.title() for x in request_type.split('_') + ) make_request_args = { 'request': self._request_serializer.serialize_http_request( diff --git a/tests/integration/test_crt.py b/tests/integration/test_crt.py index ec59dd91..24fb06bc 100644 --- a/tests/integration/test_crt.py +++ b/tests/integration/test_crt.py @@ -412,7 +412,9 @@ def test_delete_exception_no_such_bucket(self): # Test that CRT exceptions translate properly into the botocore exceptions. transfer = self._create_s3_transfer() with self.assertRaises(ClientError) as ctx: - future = transfer.delete(f"{self.bucket_name}-NONEXISTENT-{uuid4()}", "foo.txt") + future = transfer.delete( + f"{self.bucket_name}-NONEXISTENT-{uuid4()}", "foo.txt" + ) future.result() self.assertEqual(ctx.exception.__class__.__name__, 'NoSuchBucket')