silence

astropy.utils.misc.silence()[source]

A context manager that silences sys.stdout and sys.stderr.