From e01fe02653553cb2ba1c7ccf7da195ec4e28efb6 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Wed, 23 Oct 2019 08:03:42 +0100 Subject: [PATCH] DynamoDB - Update doc for update-method --- moto/dynamodb2/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moto/dynamodb2/models.py b/moto/dynamodb2/models.py index d4704bad7..3c1729f9e 100644 --- a/moto/dynamodb2/models.py +++ b/moto/dynamodb2/models.py @@ -36,9 +36,9 @@ def bytesize(val): def attribute_is_list(attr): """ - Checks if attribute denotes a list, and returns the regular expression if so + Checks if attribute denotes a list, and returns the name of the list and the given list index if so :param attr: attr or attr[index] - :return: attr, re or None + :return: attr, index or None """ list_index_update = re.match('(.+)\\[([0-9]+)\\]', attr) if list_index_update: