def autocommit(using=None):
 warnings.warn('autocommit is deprecated in favor of set_autocommit.', PendingDeprecationWarning, stacklevel=2)
 def entering(using):
  enter_transaction_management(managed=False, using=using)
 def exiting(exc_type, using):
  leave_transaction_management(using=using)
 return _transaction_func(entering, exiting, using)

def autocommit ( using = None ) : warnings . warn ( 'autocommit is deprecated in favor of set_autocommit.' , PendingDeprecationWarning , stacklevel = 2 ) def entering ( using ) : enter_transaction_management ( managed = False , using = using ) def exiting ( exc_type , using ) : leave_transaction_management ( using = using ) return _transaction_func ( entering , exiting , using )
decorator that activates commit on save .