Fix python 2.7 issue

This commit is contained in:
Brian Rower 2017-09-12 23:30:15 -07:00
parent 6affc7a4ec
commit c1c592609a

View File

@ -150,7 +150,7 @@ class Item(BaseModel):
else:
self.attrs[key] = DynamoType({"S": value})
elif action == 'ADD':
key, value = value.split(" ", maxsplit=1)
key, value = value.split(" ", 1)
key = key.strip()
value_str = value.strip()
if value_str in expression_attribute_values:
@ -182,7 +182,7 @@ class Item(BaseModel):
raise TypeError
elif action == 'DELETE':
key, value = value.split(" ", maxsplit=1)
key, value = value.split(" ", 1)
key = key.strip()
value_str = value.strip()
if value_str in expression_attribute_values: