summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 461122bba1..3b0c9599c4 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -69,8 +69,8 @@ class VersionStringException(Exception):
69 69
70def explode_version(s): 70def explode_version(s):
71 r = [] 71 r = []
72 alpha_regexp = re.compile('^([a-zA-Z]+)(.*)$') 72 alpha_regexp = re.compile(r'^([a-zA-Z]+)(.*)$')
73 numeric_regexp = re.compile('^(\d+)(.*)$') 73 numeric_regexp = re.compile(r'^(\d+)(.*)$')
74 while (s != ''): 74 while (s != ''):
75 if s[0] in string.digits: 75 if s[0] in string.digits:
76 m = numeric_regexp.match(s) 76 m = numeric_regexp.match(s)
@@ -1158,14 +1158,14 @@ def edit_metadata(meta_lines, variables, varfunc, match_overrides=False):
1158 1158
1159 var_res = {} 1159 var_res = {}
1160 if match_overrides: 1160 if match_overrides:
1161 override_re = '(_[a-zA-Z0-9-_$(){}]+)?' 1161 override_re = r'(_[a-zA-Z0-9-_$(){}]+)?'
1162 else: 1162 else:
1163 override_re = '' 1163 override_re = ''
1164 for var in variables: 1164 for var in variables:
1165 if var.endswith('()'): 1165 if var.endswith('()'):
1166 var_res[var] = re.compile('^(%s%s)[ \\t]*\([ \\t]*\)[ \\t]*{' % (var[:-2].rstrip(), override_re)) 1166 var_res[var] = re.compile(r'^(%s%s)[ \\t]*\([ \\t]*\)[ \\t]*{' % (var[:-2].rstrip(), override_re))
1167 else: 1167 else:
1168 var_res[var] = re.compile('^(%s%s)[ \\t]*[?+:.]*=[+.]*[ \\t]*(["\'])' % (var, override_re)) 1168 var_res[var] = re.compile(r'^(%s%s)[ \\t]*[?+:.]*=[+.]*[ \\t]*(["\'])' % (var, override_re))
1169 1169
1170 updated = False 1170 updated = False
1171 varset_start = '' 1171 varset_start = ''