Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which supports Python 3. Fix problems found. Change-Id: I6c5fed0686154954d575507dd32fdd65c0b44437
This commit is contained in:
parent
8c4ff32c15
commit
a286903e89
|
@ -47,6 +47,7 @@ def makeRegistrar():
|
|||
registrar.all = registry
|
||||
return registrar
|
||||
|
||||
|
||||
# Create the decorator
|
||||
command = makeRegistrar()
|
||||
|
||||
|
|
|
@ -293,6 +293,7 @@ ip='%s' />"""
|
|||
self.node_id,
|
||||
self.ip)
|
||||
|
||||
|
||||
TYPE_MYSQL = 1
|
||||
# Is there a mysql memory path?
|
||||
TYPE_SQLITE = 3
|
||||
|
|
|
@ -70,6 +70,7 @@ def compare_culled_nodes(lhs, rhs_r, rhs_n):
|
|||
assert lhs_r == rhs_r
|
||||
assert lhs_n == rhs_n
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Molteniron CLI tool")
|
||||
parser.add_argument("-c",
|
||||
|
|
|
@ -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.11.0,<0.12 # Apache-2.0
|
||||
hacking>=2.0,<2.1 # Apache-2.0
|
||||
|
||||
coverage>=4.0 # Apache-2.0
|
||||
python-subunit>=0.0.18 # Apache-2.0/BSD
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -110,6 +110,6 @@ commands = oslo_debug_helper {posargs}
|
|||
# E123, E125 skipped as they are invalid PEP-8.
|
||||
|
||||
show-source = True
|
||||
ignore = E123,E125
|
||||
ignore = E123,E125,W504
|
||||
builtins = _
|
||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||
|
|
|
@ -57,6 +57,7 @@ def main():
|
|||
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
rc = main()
|
||||
|
||||
|
|
Loading…
Reference in New Issue