pylint fixes: remove redundant parens, fix comparison order 77/27577/3
authorRoss Brattain <ross.b.brattain@intel.com>
Thu, 26 Jan 2017 00:15:52 +0000 (16:15 -0800)
committerRoss Brattain <ross.b.brattain@intel.com>
Wed, 8 Feb 2017 06:51:04 +0000 (06:51 +0000)
commitc6d584f5e050cf79eb640bae3d6ca36e2788890f
treebf4a69eb9f51e989947e80a7339a11429b9bf3b9
parenta4241e6e9b121447a50fdfe0d79b322c2e2aaea9
pylint fixes: remove redundant parens, fix comparison order

removed redundant parens in if and while clauses
use var != constant, not constant != var.
Python doesn't allow for assignment in if statements, so we don't have
to use the old C workarounds

remove unwanted commas
use raw strings for regexps with backslashes, e.g. r'\s' instead of '\s'

Change-Id: I7aad645dd3d7f4b4b62f4e4510a425611c9d28f2
Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
api/resources/env_action.py
api/utils/common.py
api/utils/influx.py
yardstick/benchmark/core/__init__.py
yardstick/benchmark/runners/arithmetic.py
yardstick/benchmark/scenarios/networking/sfc_openstack.py
yardstick/common/task_template.py