Skip to content

Commit 7e594d3

Browse files
committed
Move import
1 parent e2d5df5 commit 7e594d3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/unit/s3transfer/test_download.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13+
import base64
1314
import copy
1415
import os
1516
import shutil
1617
import tempfile
1718
from io import BytesIO
1819

20+
from awscrt import checksums as crt_checksums
1921
from botocore.config import Config
2022
from s3transfer.bandwidth import BandwidthLimiter
2123
from s3transfer.checksums import (
@@ -623,10 +625,6 @@ def test_ranged_download_no_combiner_when_validation_disabled(self):
623625
self.wait_and_assert_completed_successfully(self.submission_task)
624626

625627
def _compute_content_crc32_b64(self):
626-
import base64
627-
628-
from awscrt import checksums as crt_checksums
629-
630628
crc = crt_checksums.crc32(self.content)
631629
return base64.b64encode(crc.to_bytes(4, byteorder='big')).decode(
632630
'ascii'

0 commit comments

Comments
 (0)