diff options
author | Sylvain <syt@logilab.fr> | 2007-10-19 19:09:08 +0200 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2007-10-19 19:09:08 +0200 |
commit | 2bacc1c434af8f10951c26a4323be9e5ef748287 (patch) | |
tree | c1093969f5c23ac0682cd82380cee73134cf3f20 /clcommands.py | |
parent | 8a0877bc51c99913245bdcc78a0f35d2e8312ea0 (diff) | |
download | logilab-common-2bacc1c434af8f10951c26a4323be9e5ef748287.tar.gz |
fix for 2.3 compat
Diffstat (limited to 'clcommands.py')
-rw-r--r-- | clcommands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clcommands.py b/clcommands.py index ff8bd13..71427cf 100644 --- a/clcommands.py +++ b/clcommands.py @@ -94,7 +94,7 @@ Type "%prog <command> --help" for more information about a specific command. Available commands are :\n''') doc = doc.replace('%prog', basename(sys.argv[0])) print 'usage:', doc - max_len = max(len(cmd) for cmd in commands) + max_len = max([len(cmd) for cmd in commands]) # list comprehension for py 2.3 support padding = ' '*max_len for command in commands: cmd = _COMMANDS[command] |