diff options
-rw-r--r-- | source4/scripting/python/samba/netcmd/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/__init__.py b/source4/scripting/python/samba/netcmd/__init__.py index d4f9b4b710..288993f561 100644 --- a/source4/scripting/python/samba/netcmd/__init__.py +++ b/source4/scripting/python/samba/netcmd/__init__.py @@ -162,7 +162,7 @@ class SuperCommand(Command): print "Available subcommands:" subcmds = self.subcommands.keys() subcmds.sort() - max_length = len(max(subcmds, key=len)) + max_length = max(map(lambda c: len(c), subcmds)) for cmd in subcmds: print " %*s - %s" % (-max_length, cmd, self.subcommands[cmd].description) print " * server connection needed" |