コード例 #1
0
ファイル: tools.py プロジェクト: tek/pytek
 def __exit__(self, exc_type, exc_val, exc_tb):
     if self._active:
         sys.stdout = sys.__stdout__
         sys.stderr = sys.__stderr__
         stdouthandler.setLevel(logging.INFO)
コード例 #2
0
 def __exit__(self, exc_type, exc_val, exc_tb):
     if self._active:
         sys.stdout = sys.__stdout__
         sys.stderr = sys.__stderr__
         stdouthandler.setLevel(logging.INFO)
コード例 #3
0
ファイル: tools.py プロジェクト: tek/pytek
 def __enter__(self):
     if self._active:
         stdouthandler.setLevel(logging.CRITICAL)
         sys.stdout = self._file
         sys.stderr = self._file
コード例 #4
0
 def __enter__(self):
     if self._active:
         stdouthandler.setLevel(logging.CRITICAL)
         sys.stdout = self._file
         sys.stderr = self._file