MCPcopy Create free account
hub / github.com/ipython/ipython / _set_mode

Method _set_mode

IPython/core/logger.py:54–57  ·  view source on GitHub ↗
(self,mode)

Source from the content-addressed store, hash-verified

52
53 # logmode is a validated property
54 def _set_mode(self,mode):
55 if mode not in ['append','backup','global','over','rotate']:
56 raise ValueError('invalid log mode %s given' % mode)
57 self._logmode = mode
58
59 def _get_mode(self):
60 return self._logmode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected