Resolve invalid escape sequence
When run not as a decorator dynamodb2 displays an invalid escape sequence error /moto/dynamodb2/responses.py:603: DeprecationWarning: invalid escape sequence \s '\s*([=\+-])\s*', '\\1', update_expression)
This commit is contained in:
parent
40271d2c4e
commit
a3794f2701
@ -600,7 +600,7 @@ class DynamoHandler(BaseResponse):
|
|||||||
# E.g. `a = b + c` -> `a=b+c`
|
# E.g. `a = b + c` -> `a=b+c`
|
||||||
if update_expression:
|
if update_expression:
|
||||||
update_expression = re.sub(
|
update_expression = re.sub(
|
||||||
'\s*([=\+-])\s*', '\\1', update_expression)
|
r'\s*([=\+-])\s*', '\\1', update_expression)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
item = self.dynamodb_backend.update_item(
|
item = self.dynamodb_backend.update_item(
|
||||||
|
Loading…
Reference in New Issue
Block a user