Merge "Update hacking version"

This commit is contained in:
Zuul 2019-02-19 19:20:20 +00:00 committed by Gerrit Code Review
commit 9fb535371e
5 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
oslo.reports Style Commandments
======================================================
===============================
Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/

View File

@ -10,17 +10,17 @@
# License for the specific language governing permissions and limitations
# under the License.
__all__ = [
'list_opts',
'set_defaults',
]
import copy
from oslo_config import cfg
from oslo_reports._i18n import _
__all__ = [
'list_opts',
'set_defaults',
]
_option_group = 'oslo_reports'

View File

@ -52,8 +52,8 @@ class FakeVersionObj(object):
def skip_body_lines(start_line, report_lines):
curr_line = start_line
while (len(report_lines[curr_line]) == 0
or report_lines[curr_line][0] != '='):
while (len(report_lines[curr_line]) == 0 or
report_lines[curr_line][0] != '='):
curr_line += 1
return curr_line

View File

@ -68,8 +68,8 @@ class KeyValueView(object):
if isinstance(rootmodel, col.Mapping):
for key in sorted(rootmodel):
res.append(serialize(rootmodel[key], key))
elif (isinstance(rootmodel, col.Sequence)
and not isinstance(rootmodel, six.string_types)):
elif (isinstance(rootmodel, col.Sequence) and
not isinstance(rootmodel, six.string_types)):
for val in sorted(rootmodel, key=str):
res.append(serialize(val, 'item'))
elif ET.iselement(rootmodel):

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
hacking>=1.1.0,<1.2.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0