Skip to content

Commit

Permalink
MAINT: Fix RegEx in updatetranslations script
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Dec 30, 2024
1 parent 5d67363 commit ac058e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/updatetranslations.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def Update(lupdatebin, tsfile: str, debuglupdate: bool, applyHeuristics = True)
logging.error('lupdate failed with error code %d', res.returncode)
logging.debug('stdout: ' + res.stdout)
exit(1)
p = re.compile('Found (?P<nsrc>[0-9]+) source text\(s\) \((?P<nnew>[0-9]+) new and (?P<nsame>[0-9]+) already existing\)')
p = re.compile(r'Found (?P<nsrc>[0-9]+) source text\(s\) \((?P<nnew>[0-9]+) new and (?P<nsame>[0-9]+) already existing\)')
m = p.search(res.stdout.decode('ascii'))
logging.debug('Found %s texts where %s new and %s same', m.group('nsrc'), m.group('nnew'), m.group('nsame'))
return (m.group('nsrc'), m.group('nnew'), m.group('nsame'))
Expand Down

0 comments on commit ac058e8

Please sign in to comment.