[blivet:master 16/20] Make regular expressions raw strings.

mulhern amulhern at redhat.com
Fri Apr 11 18:03:58 UTC 2014


Signed-off-by: mulhern <amulhern at redhat.com>
---
 scripts/makebumpver | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/makebumpver b/scripts/makebumpver
index fe65849..d6e302a 100755
--- a/scripts/makebumpver
+++ b/scripts/makebumpver
@@ -108,7 +108,7 @@ class MakeBumpVer:
         fields = lines[0].split(' ')
 
         if len(fields) == 2 and fields[1].startswith('rhel'):
-            branch_pattern="^rhel(\d+)-(.*)"
+            branch_pattern=r"^rhel(\d+)-(.*)"
             m = re.match(branch_pattern, fields[1])
             if m:
                 return m.group(1)
@@ -217,7 +217,7 @@ class MakeBumpVer:
             return True
 
         bzentry = self._queryBug(bug)
-        ack_pattern="rhel-%s\.\d+\.\d+" % self.rhel
+        ack_pattern=r"rhel-%s\.\d+\.\d+" % self.rhel
         for f in bzentry.flags:
             if re.match(ack_pattern, f['name']) and f['status'] == '+':
                 return True
-- 
1.8.3.1



More information about the anaconda-patches mailing list