def _log_results(self, results, log=None):
     if log is None:
         return
     for obj, exc in results:
         if exc is None:
             continue
         log('failed to close {!r} ({!r})'.format(obj, exc))
예제 #2
0
파일: _util.py 프로젝트: ku5ic/dotfiles
 def _log_results(self, results, log=None):
     if log is None:
         return
     for obj, exc in results:
         if exc is None:
             continue
         log('failed to close {!r} ({!r})'.format(obj, exc))