Fix some 'DeprecationWarning: invalid escape sequence' warnings and use str.format for string interpolation.
I am seeing a lot of deperecation warnings when I use moto for my tests (running under pytest), so I figured I'll clean up some of them.
This commit is contained in:
parent
c54e2ec001
commit
374b623e1d
6 changed files with 20 additions and 18 deletions
|
|
@ -347,7 +347,7 @@ class BotocoreEventMockAWS(BaseMockAWS):
|
|||
responses_mock.add(
|
||||
CallbackResponse(
|
||||
method=method,
|
||||
url=re.compile("https?://.+.amazonaws.com/.*"),
|
||||
url=re.compile(r"https?://.+.amazonaws.com/.*"),
|
||||
callback=not_implemented_callback,
|
||||
stream=True,
|
||||
match_querystring=False,
|
||||
|
|
@ -356,7 +356,7 @@ class BotocoreEventMockAWS(BaseMockAWS):
|
|||
botocore_mock.add(
|
||||
CallbackResponse(
|
||||
method=method,
|
||||
url=re.compile("https?://.+.amazonaws.com/.*"),
|
||||
url=re.compile(r"https?://.+.amazonaws.com/.*"),
|
||||
callback=not_implemented_callback,
|
||||
stream=True,
|
||||
match_querystring=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue