aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/help.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command/help.py')
-rw-r--r--libbe/command/help.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/command/help.py b/libbe/command/help.py
index 3af7769..981ea1a 100644
--- a/libbe/command/help.py
+++ b/libbe/command/help.py
@@ -95,15 +95,15 @@ class Help (libbe.command.Command):
def _run(self, **params):
if params['topic'] == None:
if hasattr(self.ui, 'help'):
- print >> self.stdout, self.ui.help().rstrip('\n')
+ print(self.ui.help().rstrip('\n'), file=self.stdout)
elif params['topic'] in libbe.command.commands(command_names=True):
module = libbe.command.get_command(params['topic'])
Class = libbe.command.get_command_class(module,params['topic'])
c = Class(ui=self.ui)
self.ui.setup_command(c)
- print >> self.stdout, c.help().rstrip('\n')
+ print(c.help().rstrip('\n'), file=self.stdout)
elif params['topic'] in TOPICS:
- print >> self.stdout, TOPICS[params['topic']].rstrip('\n')
+ print(TOPICS[params['topic']].rstrip('\n'), file=self.stdout)
else:
raise libbe.command.UserError(
'"%s" is neither a command nor topic' % params['topic'])