#NEWLINE# def mysql_connections( ) : #NEWLINE# #INDENT# conn_names = ( [ DEFAULT_DB_ALIAS ] + list ( ( set ( connections ) - { DEFAULT_DB_ALIAS } ) ) ) #NEWLINE# for alias in conn_names : #NEWLINE# #INDENT# connection = connections [ alias ] #NEWLINE# if ( not hasattr ( connection , 'mysql_version' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( yield ( connection , connection ) )