pidgin/purple-plugin-pack

Parents 1a752dbdf56c
Children eeda864ecb1b
plugin_pack.py: another python3 compat fix in show_usage

More specifically, fixing something that was broken in a previous python3
compat attempt by someone else.
--- a/plugin_pack.py Thu Apr 06 01:15:43 2017 -0300
+++ b/plugin_pack.py Thu Apr 06 01:54:29 2017 -0300
@@ -536,11 +536,10 @@
def show_usage(pp, exitcode):
print(__doc__)
- cmds = pp.commands.keys()
- cmds.sort()
+ cmds = sorted(list(pp.commands.keys()))
for cmd in cmds:
- print(" {:<-20} {}".format(cmd, pp.commands[cmd].__doc__))
+ print(" {:20} {}".format(cmd, pp.commands[cmd].__doc__))
print("")