mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
removed stupid print statements
This commit is contained in:
parent
69f4041c52
commit
46e6fdaa62
@ -174,14 +174,12 @@ class Math(callbacks.Privmsg):
|
||||
text = self._mathRe.sub(handleMatch, text)
|
||||
try:
|
||||
self.log.info('evaluating %r from %s' % (text, msg.prefix))
|
||||
print text
|
||||
x = complex(eval(text, self._mathEnv, self._mathEnv))
|
||||
irc.reply(self._complexToString(x))
|
||||
except OverflowError:
|
||||
maxFloat = math.ldexp(0.9999999999999999, 1024)
|
||||
irc.error('The answer exceeded %s or so.' % maxFloat)
|
||||
except TypeError:
|
||||
print "hey"
|
||||
irc.error('Something in there wasn\'t a valid number.')
|
||||
except NameError, e:
|
||||
irc.error('%s is not a defined function.' % str(e).split()[1])
|
||||
@ -215,7 +213,6 @@ class Math(callbacks.Privmsg):
|
||||
maxFloat = math.ldexp(0.9999999999999999, 1024)
|
||||
irc.error('The answer exceeded %s or so.' % maxFloat)
|
||||
except TypeError:
|
||||
print "ho"
|
||||
irc.error('Something in there wasn\'t a valid number.')
|
||||
except NameError, e:
|
||||
irc.error('%s is not a defined function.' % str(e).split()[1])
|
||||
|
Loading…
Reference in New Issue
Block a user