From c1c592609abfb3699e7692facf30d9ca7a9103dc Mon Sep 17 00:00:00 2001 From: Brian Rower Date: Tue, 12 Sep 2017 23:30:15 -0700 Subject: [PATCH] Fix python 2.7 issue --- 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 5747f260d..5915d6eea 100644 --- a/moto/dynamodb2/models.py +++ b/moto/dynamodb2/models.py @@ -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: