def abort ( err ) : if _debug : abort . _debug ( "abort %r" , err ) global local_controllers # tell all the local controllers to abort for controller in local_controllers . values ( ) : controller . abort ( err )
python abort(404) global name 'abort' is not defined
Abort everything everywhere .
def abort(err):
    """Abort everything, everywhere."""
    if _debug: abort._debug("abort %r", err)
    global local_controllers

    # tell all the local controllers to abort
    for controller in local_controllers.values():
        controller.abort(err)