Skip to content

Commit

Permalink
format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Jun 21, 2024
1 parent 81e1de2 commit 25a71c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion s3transfer/crt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/test_crt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 25a71c3

Please sign in to comment.