Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinL committed Dec 4, 2019
1 parent d29250f commit b8af601
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dataengineeringutils3/s3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import gzip

import boto3

def gzip_string_write_to_s3(file_as_string, s3_path):
Expand All @@ -25,7 +26,7 @@ def bucket_key_to_s3_path(bucket, key):
"""
Takes an S3 bucket and key combination and returns the full S3 path to that location.
"""
return "s3://{}/{}".format(bucket, key)
return f"s3://{bucket}/{key}"

def _add_slash(s):
"""
Expand Down

0 comments on commit b8af601

Please sign in to comment.