

def set_logfile(self, lf):
    if (not hasattr(lf, 'write')):
        raise ValueError('Logfile object must have write method.')
    self._logfile = lf

dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/controller.py Controller.set_logfile/original