Skip to content

Commit c8b166a

Browse files
donghanigorborgest
authored andcommitted
Fix style
1 parent 6b75249 commit c8b166a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

awswrangler/s3/_copy.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
_logger: logging.Logger = logging.getLogger(__name__)
1414

1515

16-
def _copy_objects(batch: List[Tuple[str, str]], use_threads: bool,
17-
boto3_session: boto3.Session, s3_additional_kwargs: Optional[Dict[str, str]]) -> None:
16+
def _copy_objects(
17+
batch: List[Tuple[str, str]],
18+
use_threads: bool,
19+
boto3_session: boto3.Session,
20+
s3_additional_kwargs: Optional[Dict[str, str]],
21+
) -> None:
1822
_logger.debug("len(batch): %s", len(batch))
1923
client_s3: boto3.client = _utils.client(service_name="s3", session=boto3_session)
2024
resource_s3: boto3.resource = _utils.resource(service_name="s3", session=boto3_session)
@@ -115,8 +119,12 @@ def merge_datasets(
115119
raise exceptions.InvalidArgumentValue(f"{mode} is a invalid mode option.")
116120

117121
new_objects: List[str] = copy_objects(
118-
paths=paths, source_path=source_path, target_path=target_path,
119-
use_threads=use_threads, boto3_session=session, s3_additional_kwargs=s3_additional_kwargs
122+
paths=paths,
123+
source_path=source_path,
124+
target_path=target_path,
125+
use_threads=use_threads,
126+
boto3_session=session,
127+
s3_additional_kwargs=s3_additional_kwargs,
120128
)
121129
_logger.debug("len(new_objects): %s", len(new_objects))
122130
return new_objects
@@ -202,7 +210,6 @@ def copy_objects(
202210
batch.append((path, path_final))
203211
_logger.debug("len(new_objects): %s", len(new_objects))
204212
_copy_objects(
205-
batch=batch, use_threads=use_threads,
206-
boto3_session=session, s3_additional_kwargs=s3_additional_kwargs
213+
batch=batch, use_threads=use_threads, boto3_session=session, s3_additional_kwargs=s3_additional_kwargs
207214
)
208215
return new_objects

0 commit comments

Comments
 (0)