parameters: (self)
docstring: Suppress output from print statements. This is mainly useful for debugging, as GSAS does a lot of printing.
docstring_summary: Suppress output from print statements. This is mainly useful for debugging, as GSAS does a lot of printing.
docstring_tokens: Suppress output from print statements . This is mainly useful for debugging as GSAS does a lot of printing .
function: def _suppress_stdout(self):
          """
          Suppress output from print statements. This is mainly useful for debugging, as GSAS does a lot of printing.
          """
          if self.getProperty(self.PROP_SUPPRESS_GSAS_OUTPUT).value:
              self.log().information("Suppressing stdout")
              with open(os.devnull, "w") as devnull:
                  old_stdout = sys.stdout
                  sys.stdout = devnull
                  try:
                      yield
                  finally:
                      sys.stdout = old_stdout
          else:
              yield
function_tokens: def _suppress_stdout ( self ) : if self . getProperty ( self . PROP_SUPPRESS_GSAS_OUTPUT ) . value : self . log ( ) . information ( "Suppressing stdout" ) with open ( os . devnull , "w" ) as devnull : old_stdout = sys . stdout sys . stdout = devnull try : yield finally : sys . stdout = old_stdout else : yield