Changed formatting of rpn in case of a non-empty stack.

This commit is contained in:
Jeremy Fincher 2003-04-20 09:04:27 +00:00
parent 3188810d21
commit e06ce955fa

View File

@ -445,7 +445,8 @@ class FunCommands(callbacks.Privmsg):
if len(stack) == 1: if len(stack) == 1:
irc.reply(msg, str(self._complexToString(complex(stack[0])))) irc.reply(msg, str(self._complexToString(complex(stack[0]))))
else: else:
irc.reply(msg, 'Stack: %r' % stack) s = ', '.join(map(self._complexToString, map(complex, stack)))
irc.reply(msg, 'Stack: [%s]' % s)
def objects(self, irc, msg, args): def objects(self, irc, msg, args):
"""takes no arguments. """takes no arguments.