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 77this file completely. See https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html.
88"""
99import logging
10- from distutils .version import StrictVersion
1110from io import IOBase
1211from typing import Optional
1312
2423
2524logger = logging .getLogger (__name__ )
2625
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 ):
2831
2932 class PowertoolsStreamingBody (IOBase ):
3033 """Wrapper class for a HTTP response body.
You can’t perform that action at this time.
0 commit comments