def _transaction_func(entering, exiting, using):
 if (using is None):
  using = DEFAULT_DB_ALIAS
 if callable(using):
  return Transaction(entering, exiting, DEFAULT_DB_ALIAS)(using)
 return Transaction(entering, exiting, using)

def _transaction_func ( entering , exiting , using ) : if ( using is None ) : using = DEFAULT_DB_ALIAS if callable ( using ) : return Transaction ( entering , exiting , DEFAULT_DB_ALIAS ) ( using ) return Transaction ( entering , exiting , using )
takes 3 things .