Commit 00a534ef authored by Jérome Perrin's avatar Jérome Perrin Committed by Kirill Smelkov

zodb: rework command driver for python3 compatibility

This makes zodb command driver tests added in the previous patch to pass
on both python2 and python3.
parent 2d94ae9d
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (C) 2017-2018 Nexedi SA and Contributors. # -*- coding: utf-8 -*-
# Copyright (C) 2017-2019 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com> # Kirill Smelkov <kirr@nexedi.com>
# Jérome Perrin <jerome@nexedi.com>
# #
# This program is free software: you can Use, Study, Modify and Redistribute # This program is free software: you can Use, Study, Modify and Redistribute
# it under the terms of the GNU General Public License version 3, or (at your # it under the terms of the GNU General Public License version 3, or (at your
...@@ -51,10 +53,7 @@ Usage: ...@@ -51,10 +53,7 @@ Usage:
The commands are: The commands are:
""", file=out) """, file=out)
cmdv = command_dict.keys() for cmd, cmd_module in sorted(command_dict.items()):
cmdv.sort()
for cmd in cmdv:
cmd_module = command_dict[cmd]
print(" %-11s %s" % (cmd, cmd_module.summary), file=out) print(" %-11s %s" % (cmd, cmd_module.summary), file=out)
print("""\ print("""\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment