Update hacking version

Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Ic5014f443b9093d6168c824ad66151cd1c489b74
This commit is contained in:
ZhijunWei 2019-01-05 00:42:56 +08:00
parent 91382aa943
commit 751f519358
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
hacking<0.11,>=0.10.2 hacking>=1.1.0,<1.2.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD python-subunit>=1.0.0 # Apache-2.0/BSD
oslotest>=1.10.0 # Apache-2.0 oslotest>=1.10.0 # Apache-2.0

View File

@ -366,8 +366,8 @@ def _set_colval_args(*col_values):
if isinstance(val, collections.Mapping): if isinstance(val, collections.Mapping):
args += ["%s:%s%s%s" % ( args += ["%s:%s%s%s" % (
col, k, op, _py_to_val(v)) for k, v in val.items()] col, k, op, _py_to_val(v)) for k, v in val.items()]
elif (isinstance(val, collections.Sequence) elif (isinstance(val, collections.Sequence) and
and not isinstance(val, six.string_types)): not isinstance(val, six.string_types)):
if len(val) == 0: if len(val) == 0:
args.append("%s%s%s" % (col, op, "[]")) args.append("%s%s%s" % (col, op, "[]"))
else: else: