mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Added i to _mathEnv
This commit is contained in:
parent
69cbe9f85a
commit
d6087e2906
@ -326,6 +326,7 @@ class FunCommands(callbacks.Privmsg):
|
||||
_mathEnv = {}
|
||||
_mathEnv.update(math.__dict__)
|
||||
_mathEnv.update(cmath.__dict__)
|
||||
_mathEnv['i'] = 1j
|
||||
_mathEnv['__builtins__'] = new.module('__builtins__')
|
||||
_mathInt = re.compile(r'(?<!\d|\.)(\d+)(?!\d+|\.|\.\d+)')
|
||||
_mathHex = re.compile(r'(0x[A-Fa-f\d]+)')
|
||||
|
Loading…
Reference in New Issue
Block a user