def run(self, args): sys.stdout = _Stream(self._logger) Build.run(self, args) sys.stdout = sys.__stdout__