(self, stream_name, preserve)
Silence stdout, stderr, or both.
Silence stdout, stderr, or both.
Silence stdout stderr or both .
def _muffle(self, stream_name, preserve):
        """Silence stdout, stderr, or both."""
        if not stream_name:
            with self._muffle_one('stdout', preserve=preserve):
                with self._muffle_one('stderr', preserve=preserve):
                    yield
        else:
            with self._muffle_one(stream_name, preserve=preserve):
                yield
def _muffle ( self , stream_name , preserve ) : if not stream_name : with self . _muffle_one ( 'stdout' , preserve = preserve ) : with self . _muffle_one ( 'stderr' , preserve = preserve ) : yield else : with self . _muffle_one ( stream_name , preserve = preserve ) : yield