parameters: ()
docstring: Context manager to disable capturing activity stream changes.
docstring_summary: Context manager to disable capturing activity stream changes.
docstring_tokens: Context manager to disable capturing activity stream changes .
function: def disable_activity_stream():
      """
      Context manager to disable capturing activity stream changes.
      """
      try:
          previous_value = activity_stream_enabled.enabled
          activity_stream_enabled.enabled = False
          yield
      finally:
          activity_stream_enabled.enabled = previous_value
function_tokens: def disable_activity_stream ( ) : try : previous_value = activity_stream_enabled . enabled activity_stream_enabled . enabled = False yield finally : activity_stream_enabled . enabled = previous_value