mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-08 05:08:45 +08:00
Merge #1491 Remove unused _dummy_context_mgr
This commit is contained in:
@@ -82,15 +82,6 @@ def _utc_datetime_to_iso(datetime_object):
|
||||
return None
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def _dummy_context_mgr():
|
||||
"""
|
||||
Yields None. Used in the make_session to not duplicate the code when
|
||||
app_context exists.
|
||||
"""
|
||||
yield None
|
||||
|
||||
|
||||
def _setup_event_listeners(db_session):
|
||||
"""
|
||||
Starts listening for events related to database session.
|
||||
|
||||
Reference in New Issue
Block a user