diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-21 11:31:57 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-06-21 11:31:57 +0300 |
commit | 444fb65b1a79c2c2ce6753cdfe18372203e1b44f (patch) | |
tree | 4314c153eff2e535c91c373cde41d486546514e3 /contrib/python/boto3 | |
parent | 184eb704ed3f6064598640cc8cf23ab5af942a97 (diff) | |
download | ydb-444fb65b1a79c2c2ce6753cdfe18372203e1b44f.tar.gz |
intermediate changes
ref:98c26ee2d3cd643aba98b8222f9f8a4c1773449a
Diffstat (limited to 'contrib/python/boto3')
-rw-r--r-- | contrib/python/boto3/py3/.dist-info/METADATA | 4 | ||||
-rw-r--r-- | contrib/python/boto3/py3/boto3/__init__.py | 2 | ||||
-rw-r--r-- | contrib/python/boto3/py3/boto3/dynamodb/table.py | 13 |
3 files changed, 9 insertions, 10 deletions
diff --git a/contrib/python/boto3/py3/.dist-info/METADATA b/contrib/python/boto3/py3/.dist-info/METADATA index 31c2919ccb..d48121a887 100644 --- a/contrib/python/boto3/py3/.dist-info/METADATA +++ b/contrib/python/boto3/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: boto3 -Version: 1.24.2 +Version: 1.24.3 Summary: The AWS SDK for Python Home-page: https://github.com/boto/boto3 Author: Amazon Web Services @@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.10 Requires-Python: >= 3.7 License-File: LICENSE License-File: NOTICE -Requires-Dist: botocore (<1.28.0,>=1.27.2) +Requires-Dist: botocore (<1.28.0,>=1.27.3) Requires-Dist: jmespath (<2.0.0,>=0.7.1) Requires-Dist: s3transfer (<0.7.0,>=0.6.0) Provides-Extra: crt diff --git a/contrib/python/boto3/py3/boto3/__init__.py b/contrib/python/boto3/py3/boto3/__init__.py index 4f129b8f51..f81d227b49 100644 --- a/contrib/python/boto3/py3/boto3/__init__.py +++ b/contrib/python/boto3/py3/boto3/__init__.py @@ -17,7 +17,7 @@ from boto3.compat import _warn_deprecated_python from boto3.session import Session __author__ = 'Amazon Web Services' -__version__ = '1.24.2' +__version__ = '1.24.3' # The default Boto3 session; autoloaded when needed. diff --git a/contrib/python/boto3/py3/boto3/dynamodb/table.py b/contrib/python/boto3/py3/boto3/dynamodb/table.py index d96ec8f5ee..931296bc09 100644 --- a/contrib/python/boto3/py3/boto3/dynamodb/table.py +++ b/contrib/python/boto3/py3/boto3/dynamodb/table.py @@ -145,13 +145,12 @@ class BatchWriter: RequestItems={self._table_name: items_to_send} ) unprocessed_items = response['UnprocessedItems'] - - if unprocessed_items and unprocessed_items[self._table_name]: - # Any unprocessed_items are immediately added to the - # next batch we send. - self._items_buffer.extend(unprocessed_items[self._table_name]) - else: - self._items_buffer = [] + if not unprocessed_items: + unprocessed_items = {} + item_list = unprocessed_items.get(self._table_name, []) + # Any unprocessed_items are immediately added to the + # next batch we send. + self._items_buffer.extend(item_list) logger.debug( "Batch write sent %s, unprocessed: %s", len(items_to_send), |