Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhanson committed May 31, 2023
1 parent 9e8fcff commit 87a1bb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boto3utils/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def read(self, url):
kwargs = {}
if self.requester_pays:
kwargs["RequestPayer"] = "requester"
response = self.get_object(parts['bucket'], parts['key'], extra_args=kwargs)
response = self.get_object(parts['bucket'],
parts['key'],
extra_args=kwargs)
body = response['Body'].read()
if op.splitext(parts['key'])[1] == '.gz':
body = GzipFile(None, 'rb', fileobj=BytesIO(body)).read()
Expand Down

0 comments on commit 87a1bb3

Please sign in to comment.