1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Fix syntax warning
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/1086960
Forwarded: no
Last-Update: 2024-11-29
--- python-seamicroclient-0.4.0+2016.05.20.git.40ee44c664.orig/seamicroclient/openstack/common/gettextutils.py
+++ python-seamicroclient-0.4.0+2016.05.20.git.40ee44c664/seamicroclient/openstack/common/gettextutils.py
@@ -158,7 +158,7 @@ class Message(_userString.UserString, ob
# 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(r'(?:[^%]|^)?%\((\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):
|