From c1232a7a23b4022c008f273ea71e74b590056773 Mon Sep 17 00:00:00 2001 From: Greg Sterin Date: Fri, 15 Feb 2019 13:49:42 -0800 Subject: [PATCH] linting --- moto/dynamodb2/responses.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moto/dynamodb2/responses.py b/moto/dynamodb2/responses.py index bd09b6890..49095f09c 100644 --- a/moto/dynamodb2/responses.py +++ b/moto/dynamodb2/responses.py @@ -50,11 +50,10 @@ def condition_expression_to_expected(condition_expression, expression_attribute_ cond_items = [c.strip() for c in condition_expression.split('AND')] if cond_items: - overwrite = False exists_re = re.compile('^attribute_exists\s*\((.*)\)$') not_exists_re = re.compile( '^attribute_not_exists\s*\((.*)\)$') - equals_re= re.compile('^(#?\w+)\s*=\s*(\:?\w+)') + equals_re = re.compile('^(#?\w+)\s*=\s*(\:?\w+)') for cond in cond_items: exists_m = exists_re.match(cond)