Skip to content

Commit 86c04c6

Browse files
author
Ulrik Haugen
committed
Repair backslash in regex
To get rid of "DeprecationWarning: invalid escape sequence \s".
1 parent cd6464b commit 86c04c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxarg/parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def parser_navigate(parser_result, path, current_path=None):
1010
if isinstance(path, str):
1111
if path == '':
1212
return parser_result
13-
path = re.split('\s+', path)
13+
path = re.split('\\s+', path)
1414
current_path = current_path or []
1515
if len(path) == 0:
1616
return parser_result

0 commit comments

Comments
 (0)