summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2015-01-06 18:05:20 +0100
committerClaude Paroz <claude@2xlibre.net>2015-01-06 18:43:32 +0100
commit9f328405f6691784fbd59530e7e01bd6d74e35f1 (patch)
treedcc9637255dd3a6e185271bdb8de87cae283dc5c
parente0080cf577166e160987c74e2d8324ddbbee3b6d (diff)
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.
-rw-r--r--django/core/management/commands/makemessages.py2
1 files changed, 1 insertions, 1 deletions
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: