Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad If CompareLt NameLoad Num body Return NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore BinOpSub AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad NameLoad If CompareLt NameLoad Num body Raise Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list Assign NameStore ListLoad TupleLoad Str BinOpMod Str Call NameLoad Str TupleLoad Str BinOpMod Str Call NameLoad Str TupleLoad Str BinOpMod Str Call NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Yield NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body TryExcept body Assign NameStore Call NameLoad NameLoad Str handlers ExceptHandler type NameLoad body Return Call NameLoad NameLoad NameLoad If CompareLt NameLoad Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse If CompareNotIn Str NameLoad body Assign NameStore Call NameLoad NameLoad Str If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Global identifier If UnaryOpNot NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str body If UnaryOpNot Call NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore NameLoad Raise Call NameLoad decorator_list decorator_list
N/A N/A __builtin__ N/A functools N/A json N/A logging N/A yaml google.appengine.api urlfetch django.conf settings django.core.exceptions MiddlewareNotUsed ApiSecurityException N/A Exception N/A N/A Error when attempting to call an unsafe API. N/A N/A find_argument_index N/A N/A function argument N/A N/A N/A args N/A N/A N/A function func_code co_varnames N/A N/A N/A function func_code co_argcount N/A N/A N/A args index argument N/A get_default_argument N/A N/A function argument N/A N/A N/A argument_index N/A find_argument_index function argument N/A num_positional_args N/A N/A N/A function func_code co_argcount N/A len N/A function func_defaults N/A default_position N/A argument_index num_positional_args N/A N/A default_position 0 N/A N/A None N/A N/A N/A function func_defaults N/A default_position N/A replace_default_argument N/A N/A function argument replacement N/A N/A N/A argument_index N/A find_argument_index function argument N/A num_positional_args N/A N/A N/A function func_code co_argcount N/A len N/A function func_defaults N/A default_position N/A argument_index num_positional_args N/A N/A default_position 0 N/A N/A N/A ApiSecurityException Attempt to modify positional default value N/A new_defaults N/A list N/A function func_defaults N/A N/A new_defaults N/A default_position replacement N/A N/A function func_defaults N/A tuple new_defaults N/A N/A _JSON_CHARACTER_REPLACEMENT_MAPPING N/A N/A < N/A \u%04x N/A ord < N/A > N/A \u%04x N/A ord > N/A & N/A \u%04x N/A ord & _JsonEncoderForHtml N/A N/A json JSONEncoder N/A encode N/A N/A self o N/A N/A N/A chunks N/A N/A self iterencode o _one_shot True N/A N/A N/A isinstance chunks N/A list tuple N/A N/A chunks N/A list chunks N/A N/A N/A join chunks N/A iterencode N/A N/A self o _one_shot N/A False N/A N/A chunks N/A N/A N/A super _JsonEncoderForHtml self iterencode o _one_shot N/A chunk chunks N/A N/A N/A character replacement _JSON_CHARACTER_REPLACEMENT_MAPPING N/A N/A chunk N/A N/A chunk replace character replacement N/A N/A chunk N/A N/A _HttpUrlLoggingWrapper N/A N/A func N/A N/A N/A Decorates func, logging when 'url' params do not start with https://. _CheckAndLog N/A N/A N/A args kwargs N/A N/A N/A N/A arg_index N/A find_argument_index func url N/A N/A N/A ValueError N/A N/A N/A func args kwargs N/A N/A arg_index N/A len args N/A N/A arg_value N/A args N/A arg_index N/A N/A N/A url kwargs N/A N/A arg_value N/A kwargs N/A url N/A N/A N/A url kwargs N/A N/A arg_value N/A get_default_argument func url N/A N/A arg_value N/A N/A N/A arg_value startswith https:// N/A N/A N/A N/A logging warn SECURITY : fetching non-HTTPS url %r arg_value N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A _CheckAndLog N/A N/A PATCHES_APPLIED False AppEngineSecurityMiddleware N/A object N/A N/A 
        This middleware patches over some more insecure parts of the Python and AppEngine libraries.

        The patches are taken from here: https://github.com/google/gae-secure-scaffold-python

        You should add this middleware first in your middleware classes
     __init__ N/A N/A self N/A args kwargs N/A N/A PATCHES_APPLIED N/A N/A PATCHES_APPLIED N/A N/A N/A replace_default_argument N/A json dump cls _JsonEncoderForHtml N/A N/A replace_default_argument N/A json dumps cls _JsonEncoderForHtml N/A N/A replace_default_argument N/A yaml compose Loader N/A N/A yaml loader SafeLoader N/A N/A replace_default_argument N/A yaml compose_all Loader N/A N/A yaml loader SafeLoader N/A N/A replace_default_argument N/A yaml load Loader N/A N/A yaml loader SafeLoader N/A N/A replace_default_argument N/A yaml load_all Loader N/A N/A yaml loader SafeLoader N/A N/A replace_default_argument N/A yaml parse Loader N/A N/A yaml loader SafeLoader N/A N/A replace_default_argument N/A yaml scan Loader N/A N/A yaml loader SafeLoader N/A N/A replace_default_argument N/A urlfetch fetch validate_certificate True N/A N/A replace_default_argument N/A urlfetch make_fetch_call validate_certificate True N/A N/A urlfetch fetch N/A _HttpUrlLoggingWrapper N/A urlfetch fetch N/A N/A urlfetch make_fetch_call N/A _HttpUrlLoggingWrapper N/A urlfetch make_fetch_call N/A setting N/A CSRF_COOKIE_SECURE SESSION_COOKIE_HTTPONLY SESSION_COOKIE_SECURE N/A N/A N/A N/A getattr settings setting False N/A N/A N/A N/A logging warning settings.%s is not set to True, this is insecure setting N/A PATCHES_APPLIED True N/A N/A MiddlewareNotUsed N/A N/A