def unregister_fsa_session_signals():
 if (not has_flask_sqlalchemy):
  return
 version = parse_version(flask_sqlalchemy.__version__)
 if (version >= (2, 0)):
  return
 events = flask_sqlalchemy._SessionSignalEvents
 signal_names = ('before_commit', 'after_commit', 'after_rollback')
 for signal_name in signal_names:
  signal = getattr(events, 'session_signal_{0}'.format(signal_name))
  event.remove(SessionBase, signal_name, signal)

def unregister_fsa_session_signals ( ) : if ( not has_flask_sqlalchemy ) : return version = parse_version ( flask_sqlalchemy . __version__ ) if ( version >= ( 2 , 0 ) ) : return events = flask_sqlalchemy . _SessionSignalEvents signal_names = ( 'before_commit' , 'after_commit' , 'after_rollback' ) for signal_name in signal_names : signal = getattr ( events , 'session_signal_{0}' . format ( signal_name ) ) event . remove ( SessionBase , signal_name , signal )
unregisters flask-sqlalchemy session commit and rollback signal handlers .