parameters: (self, cm, cm_exit)
docstring: Helper to correctly register callbacks to __exit__ methods.
docstring_summary: Helper to correctly register callbacks to __exit__ methods.
docstring_tokens: Helper to correctly register callbacks to __exit__ methods .
function: def _push_cm_exit(self, cm, cm_exit):
          """Helper to correctly register callbacks to __exit__ methods."""
          _exit_wrapper = self._create_exit_wrapper(cm, cm_exit)
          _exit_wrapper.__self__ = cm
          self._push_exit_callback(_exit_wrapper, True)
function_tokens: def _push_cm_exit ( self , cm , cm_exit ) : _exit_wrapper = self . _create_exit_wrapper ( cm , cm_exit ) _exit_wrapper . __self__ = cm self . _push_exit_callback ( _exit_wrapper , True )