aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/common
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2017-02-16 06:30:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-16 06:30:28 +0000
commit1eb4b53c4a7e34c592337ba26583d13d40c9630a (patch)
treea1a97095e1799683cd2281c1b88a68ef530a9c23 /yardstick/common
parent2c07b32c372594e5d0a936e76baca80ff87993c7 (diff)
parentc6d584f5e050cf79eb640bae3d6ca36e2788890f (diff)
Merge "pylint fixes: remove redundant parens, fix comparison order"
Diffstat (limited to 'yardstick/common')
-rwxr-xr-xyardstick/common/task_template.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/common/task_template.py b/yardstick/common/task_template.py
index bda8a1b13..9acc21336 100755
--- a/yardstick/common/task_template.py
+++ b/yardstick/common/task_template.py
@@ -45,11 +45,11 @@ def is_really_missing(mis, task_template):
# Removing variables that have default values from
# missing. Construction that won't be properly
# check is {% set x = x or 1}
- if re.search(mis.join(["{%\s*set\s+", "\s*=\s*", "[^\w]+"]),
+ if re.search(mis.join([r"{%\s*set\s+", "\s*=\s*", r"[^\w]+"]),
task_template):
return False
# Also check for a default filter which can show up as
# a missing variable
- if re.search(mis + "\s*\|\s*default\(", task_template):
+ if re.search(mis + r"\s*\|\s*default\(", task_template):
return False
return True