From 9f328405f6691784fbd59530e7e01bd6d74e35f1 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Tue, 6 Jan 2015 18:05:20 +0100 Subject: [PATCH] Fixed gettext version regex ...with the theoretical assumption that gettext may once reach a two-digit number. Thanks Walter Doekes for noticing this potential issue. --- django/core/management/commands/makemessages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py index c7ab08c777..af31402f66 100644 --- a/django/core/management/commands/makemessages.py +++ b/django/core/management/commands/makemessages.py @@ -324,7 +324,7 @@ class Command(BaseCommand): @cached_property def gettext_version(self): out, err, status = gettext_popen_wrapper(['xgettext', '--version']) - m = re.search(r'(\d)\.(\d+)\.?(\d+)?', out) + m = re.search(r'(\d+)\.(\d+)\.?(\d+)?', out) if m: return tuple(int(d) for d in m.groups() if d is not None) else: