(code, variables=None)
Executes given python code given in a string form
Executes given python code given in a string form
Executes given python code given in a string form
def evaluateCode(code, variables=None):
    """
    Executes given python code given in a string form
    """

    try:
        exec(code, variables)
    except KeyboardInterrupt:
        raise
    except Exception, ex:
        errMsg = "an error occurred while evaluating provided code ('%s') " % getSafeExString(ex)
        raise SqlmapGenericException(errMsg)
def evaluateCode ( code , variables = None ) : try : exec ( code , variables ) except KeyboardInterrupt : raise except Exception , ex : errMsg = "an error occurred while evaluating provided code ('%s') " % getSafeExString ( ex ) raise SqlmapGenericException ( errMsg )