Skip to content

Commit

Permalink
Fix "DeprecationWarning: invalid escape sequence"
Browse files Browse the repository at this point in the history
  • Loading branch information
dkellner committed Oct 1, 2018
1 parent a2dfdec commit b7de86a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eve_sqlalchemy/tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
'cache_expires': 20,
'item_title': 'contact',
'additional_lookup': {
'url': 'regex("[\w]+")',
'url': r'regex("[\w]+")',
'field': 'ref'
}
})
Expand Down
2 changes: 1 addition & 1 deletion eve_sqlalchemy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _get_id(obj):

def extract_sort_arg(req):
if req.sort:
if re.match('^[-,\w]+$', req.sort):
if re.match(r'^[-,\w]+$', req.sort):
arg = []
for s in req.sort.split(','):
if s.startswith('-'):
Expand Down

0 comments on commit b7de86a

Please sign in to comment.