File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1314import copy
1415import os
1516import shutil
1617import tempfile
1718from io import BytesIO
1819
20+ from awscrt import checksums as crt_checksums
1921from botocore .config import Config
2022from s3transfer .bandwidth import BandwidthLimiter
2123from 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'
You can’t perform that action at this time.
0 commit comments