def savepoint_rollback(sid, using=None):
 if (using is None):
  using = DEFAULT_DB_ALIAS
 connection = connections[using]
 thread_ident = thread.get_ident()
 if ((thread_ident in savepoint_state) and (using in savepoint_state[thread_ident])):
  connection._savepoint_rollback(sid)

def savepoint_rollback ( sid , using = None ) : if ( using is None ) : using = DEFAULT_DB_ALIAS connection = connections [ using ] thread_ident = thread . get_ident ( ) if ( ( thread_ident in savepoint_state ) and ( using in savepoint_state [ thread_ident ] ) ) : connection . _savepoint_rollback ( sid )
rolls back the most recent savepoint .