]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Sync oslo gettextutils
authorLuis A. Garcia <luis@linux.vnet.ibm.com>
Tue, 6 Aug 2013 19:30:38 +0000 (19:30 +0000)
committerLuis A. Garcia <luis@linux.vnet.ibm.com>
Wed, 7 Aug 2013 00:36:40 +0000 (00:36 +0000)
Change-Id: Id347e157ca2ccefe510b3328ea0047c87f25b3e4

neutron/openstack/common/gettextutils.py

index 3a6d4bf4baeebad6616806dc2721fb085658bff2..9aa2a30cb049fc11d824a851b26c1017023ab4a0 100644 (file)
@@ -137,7 +137,7 @@ class Message(UserString.UserString, object):
         # look for %(blah) fields in string;
         # ignore %% and deal with the
         # case where % is first character on the line
-        keys = re.findall('(?:[^%]|^)%\((\w*)\)[a-z]', full_msg)
+        keys = re.findall('(?:[^%]|^)?%\((\w*)\)[a-z]', full_msg)
 
         # if we don't find any %(blah) blocks but have a %s
         if not keys and re.findall('(?:[^%]|^)%[a-z]', full_msg):