unit tests did not catch this, but this will not work under python 2.6

This commit is contained in:
Peter Gorniak 2016-12-08 14:34:21 -08:00
parent 114de9ba0b
commit d4a31e5e50

View File

@ -118,7 +118,7 @@ class Item(object):
# A Real value
value = value.lstrip(":").rstrip(",").strip()
for k, v in expression_attribute_names.items():
value = re.sub(r'{}\b'.format(k), v, value)
value = re.sub(r'{0}\b'.format(k), v, value)
if action == "REMOVE":
self.attrs.pop(value, None)