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

Method __init__

IPython/testing/tools.py:351–356  ·  view source on GitHub ↗
(self, s, channel='stdout', suppress=True)

Source from the content-addressed store, hash-verified

349 def
350 """
351 def __init__(self, s, channel='stdout', suppress=True):
352 self.s = s
353 if isinstance(self.s, (str, _re_type)):
354 self.s = [self.s]
355 self.channel = channel
356 self.suppress = suppress
357
358 def __enter__(self):
359 self.orig_stream = getattr(sys, self.channel)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected