def luShowFail(): printed = 0 sf = open(LUtil.fsum_name, 'r') for line in sf: if line[-2] != "0": printed += 1 logger.error(line.rstrip()) sf.close() if printed > 0: logger.error("See %s for details of errors" % LUtil.fout_name)
def luShowFail(): printed = 0 sf = open(LUtil.fsum_name, 'r') for line in sf: if line[-2] != "0": printed+=1 logger.error(line.rstrip()) sf.close() if printed > 0: logger.error("See %s for details of errors" % LUtil.fout_name)