Skip to content

Commit de1de68

Browse files
author
Mr. Outis
committed
s3: import boto3 inside _copy instead of module level
Kudos to @skshetry for bringing this out during a review
1 parent 7f5e4a9 commit de1de68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dvc/remote/s3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import logging
44
import os
55
import threading
6-
from boto3.s3.transfer import TransferConfig
76

87
from funcy import cached_property, wrap_prop
98

@@ -157,6 +156,7 @@ def _copy(cls, s3, from_info, to_info, extra_args):
157156
# the same throughout the transfer, so it means that in order to
158157
# preserve etag, we need to transfer each part separately, so the
159158
# object is transfered in the same chunks as it was originally.
159+
from boto3.s3.transfer import TransferConfig
160160

161161
obj = cls.get_head_object(s3, from_info.bucket, from_info.path)
162162
etag = obj["ETag"].strip('"')

0 commit comments

Comments
 (0)