Merge pull request #2508 from bblommers/refactor-dynamodb-update-documentation

Refactor dynamodb update documentation
This commit is contained in:
Jack Danger 2019-10-23 15:21:06 -07:00 committed by GitHub
commit 8ecd882a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,9 +37,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: