Skip to content

Commit 6abc606

Browse files
committed
Fix SyntaxWarning: invalid escape sequence '\s'
1 parent dc8b5b9 commit 6abc606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/opi

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class PreserveWhiteSpaceWrapRawTextHelpFormatter(argparse.RawTextHelpFormatter):
2424
def _split_lines(self, text, width):
2525
textRows = text.splitlines()
2626
for idx,line in enumerate(textRows):
27-
search = re.search('\s*[\d\-]*\.?\s*', line)
27+
search = re.search(r'\s*[\d\-]*\.?\s*', line)
2828
if line.strip() == '':
2929
textRows[idx] = ' '
3030
elif search:

0 commit comments

Comments
 (0)