rex.utilities.utilities.check_eval_str

check_eval_str(s)[source]

Check an eval() string for questionable code.

Parameters:

s (str) – String to be sent to eval(). This is most likely a math equation to be evaluated. It will be checked for questionable code like imports and dunder statements.