Skip to content

Commit ca6854e

Browse files
committed
Remove warning on re
Signed-off-by: Philippe Ombredanne <pombredanne@aboutcode.org>
1 parent b410594 commit ca6854e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cluecode/copyrights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def get_tokens(numbered_lines, splitter=re.compile(r'[\t =;]+').split):
430430
# when there is a an openning parens in the middle of a word, add a
431431
# space before in some cases: exclude (digit , (s , (c , (-
432432
# this allows to recover from words like KISA(Korean
433-
line = re.sub(pattern=r'(\([^rsc\-\d])', repl=' \g<1>', string=line)
433+
line = re.sub(pattern=r'(\([^rsc\-\d])', repl=r' \g<1>', string=line)
434434
for tok in splitter(line):
435435
# strip trailing quotes+comma
436436
if tok.endswith("',"):

0 commit comments

Comments
 (0)