File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
aws_lambda_powertools/utilities/streaming Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
this file completely. See https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html.
8
8
"""
9
9
import logging
10
- from distutils .version import StrictVersion
11
10
from io import IOBase
12
11
from typing import Optional
13
12
24
23
25
24
logger = logging .getLogger (__name__ )
26
25
27
- if StrictVersion (botocore .__version__ ) < StrictVersion ("1.29.13" ): # noqa: C901
26
+ # Splitting the botocore version string into major, minor, and patch versions,
27
+ # and performing a conditional check based on the extracted versions.
28
+ major , minor , patch = map (int , botocore .__version__ .split ("." ))
29
+
30
+ if major == 1 and (minor < 29 or patch < 13 ):
28
31
29
32
class PowertoolsStreamingBody (IOBase ):
30
33
"""Wrapper class for a HTTP response body.
You can’t perform that action at this time.
0 commit comments