#NEWLINE# @ utils . dispatch_for_dialect ( '*' , multiple = True ) #NEWLINE# def _init_events( engine , thread_checkin = True , connection_trace = False , **kw ) : #NEWLINE# #INDENT# 'Set up event listeners for all database backends.' #NEWLINE# _add_process_guards ( engine ) #NEWLINE# if connection_trace : #NEWLINE# #INDENT# _add_trace_comments ( engine ) #NEWLINE# #UNINDENT# if thread_checkin : #NEWLINE# #INDENT# sqlalchemy . event . listen ( thread_checkin , 'checkin' , _thread_yield )