aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/botocore
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-03-05 19:14:35 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-03-05 20:00:10 +0300
commit3c9e6a5979a0919acbf1a97ce54ccde413c72b8c (patch)
tree1016898f9c84e39bc59c8aa4cdd8ce0cc268c580 /contrib/python/botocore
parent62aa48eef94e0c1248f08ebf1f1fba0f9bcc278f (diff)
downloadydb-3c9e6a5979a0919acbf1a97ce54ccde413c72b8c.tar.gz
Intermediate changes
commit_hash:f3c8f135f282d645d645a13361be2570bfd2a026
Diffstat (limited to 'contrib/python/botocore')
-rw-r--r--contrib/python/botocore/py3/botocore/auth.py2
-rw-r--r--contrib/python/botocore/py3/patches/06-fix-deprecation-warning.patch11
2 files changed, 12 insertions, 1 deletions
diff --git a/contrib/python/botocore/py3/botocore/auth.py b/contrib/python/botocore/py3/botocore/auth.py
index f9fac833fe..31beb7618e 100644
--- a/contrib/python/botocore/py3/botocore/auth.py
+++ b/contrib/python/botocore/py3/botocore/auth.py
@@ -416,7 +416,7 @@ class SigV4Auth(BaseSigner):
def add_auth(self, request):
if self.credentials is None:
raise NoCredentialsError()
- datetime_now = datetime.datetime.utcnow()
+ datetime_now = datetime.datetime.now(datetime.UTC)
request.context['timestamp'] = datetime_now.strftime(SIGV4_TIMESTAMP)
# This could be a retry. Make sure the previous
# authorization header is removed first.
diff --git a/contrib/python/botocore/py3/patches/06-fix-deprecation-warning.patch b/contrib/python/botocore/py3/patches/06-fix-deprecation-warning.patch
new file mode 100644
index 0000000000..bae1ad7a78
--- /dev/null
+++ b/contrib/python/botocore/py3/patches/06-fix-deprecation-warning.patch
@@ -0,0 +1,11 @@
+--- contrib/python/botocore/py3/botocore/auth.py (index)
++++ contrib/python/botocore/py3/botocore/auth.py (working tree)
+@@ -416,7 +416,7 @@ class SigV4Auth(BaseSigner):
+ def add_auth(self, request):
+ if self.credentials is None:
+ raise NoCredentialsError()
+- datetime_now = datetime.datetime.utcnow()
++ datetime_now = datetime.datetime.now(datetime.UTC)
+ request.context['timestamp'] = datetime_now.strftime(SIGV4_TIMESTAMP)
+ # This could be a retry. Make sure the previous
+ # authorization header is removed first.