Skip to content

Commit

Permalink
fix black error
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos authored Mar 16, 2024
1 parent 59deb09 commit 0b529b9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions parsons/databases/redshift/redshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def copy_s3(
bucket_region=None,
strict_length=True,
template_table=None,
encoding='utf-8'
encoding="utf-8",
):
"""
Copy a file from s3 to Redshift.
Expand Down Expand Up @@ -411,8 +411,9 @@ def copy_s3(

local_path = s3.get_file(bucket, key)
if data_type == "csv":
tbl = Table.from_csv(local_path, delimiter=csv_delimiter,
encoding=encoding)
tbl = Table.from_csv(
local_path, delimiter=csv_delimiter, encoding=encoding
)
else:
raise TypeError("Invalid data type provided")

Expand Down

0 comments on commit 0b529b9

Please sign in to comment.