summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-04-18 00:07:22 +0200
committermathieui <mathieui@mathieui.net>2012-04-18 00:07:22 +0200
commit406e24dcff56a4e4c59a110333d2bc1c7b9d3288 (patch)
tree1e432129e07476e2724b1af42a6915eab5d15541 /src/core.py
parent265702b1501d2c279a887ed3c90c0ba0ad7d95c2 (diff)
downloadpoezio-406e24dcff56a4e4c59a110333d2bc1c7b9d3288.tar.gz
poezio-406e24dcff56a4e4c59a110333d2bc1c7b9d3288.tar.bz2
poezio-406e24dcff56a4e4c59a110333d2bc1c7b9d3288.tar.xz
poezio-406e24dcff56a4e4c59a110333d2bc1c7b9d3288.zip
Remove if len(list) in command_help
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py
index f8450ef2..2d7e5129 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1375,14 +1375,14 @@ class Core(object):
/help <command_name>
"""
args = arg.split()
- if len(args) == 0:
+ if not args:
msg = _('Available commands are: ')
for command in self.commands:
msg += "%s " % command
for command in self.current_tab().commands:
msg += "%s " % command
msg += _("\nType /help <command_name> to know what each command does")
- if len(args) >= 1:
+ if args:
if args[0] in self.commands:
msg = self.commands[args[0]][1]
elif args[0] in self.current_tab().commands: