From ec259d6aeafaf4a1aaab22d0869e184feab82cf2 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 31 Oct 2009 22:05:35 +0000 Subject: [PATCH] Use batch writing mode in the help command --- deluge/ui/console/commands/help.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/console/commands/help.py b/deluge/ui/console/commands/help.py index b784971cc..ddcf2f31e 100644 --- a/deluge/ui/console/commands/help.py +++ b/deluge/ui/console/commands/help.py @@ -64,10 +64,12 @@ class Command(BaseCommand): self.console.write(cmd.__doc__ or 'No help for this command') else: max_length = max( len(k) for k in self._commands) + self.console.set_batch_write(True) for cmd in sorted(self._commands): self.console.write("{!info!}" + cmd + "{!input!} - " + self._commands[cmd].__doc__ or '') self.console.write(" ") self.console.write('For help on a specific command, use " --help"') + self.console.set_batch_write(False) return deferred