1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-20 21:08:06 +01:00

Make regexp string, not binary

This commit is contained in:
2020-07-30 16:27:19 +02:00
parent 581a1eed29
commit 47f0687e92

View File

@@ -636,7 +636,7 @@ class compile_translations(Command):
print(len(output), returncode)
raise ValueError
else:
m = re.match(b'(\d+) translated messages(?:, (\d+) fuzzy translation)?(?:, (\d+) untranslated messages)?.', output)
m = re.match('(\d+) translated messages(?:, (\d+) fuzzy translation)?(?:, (\d+) untranslated messages)?.', output)
if m:
done, fuzzy, missing = m.groups()
fuzzy = int(fuzzy) if fuzzy else 0