From fee3800c41d60522a7f082f4879595e348da0ad8 Mon Sep 17 00:00:00 2001 From: Ber Zoidberg Date: Tue, 11 Jun 2019 22:44:56 -0700 Subject: [PATCH] remove extra space --- moto/dynamodb2/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/dynamodb2/models.py b/moto/dynamodb2/models.py index 2f6575354..4b7175bbd 100644 --- a/moto/dynamodb2/models.py +++ b/moto/dynamodb2/models.py @@ -149,7 +149,7 @@ class Item(BaseModel): value = re.sub(r'{0}\b'.format(k), v, value) if action == "REMOVE": - key = value + key = value if '.' not in key: self.attrs.pop(value, None) else: