def printLog(self, level, msg):
        t = time.time()
        timeStr = time.strftime("%H:%M:%S", time.localtime(t))
        timeIdx = max(level-1, 0)
        lineStr = "%d %s %+.3f %s" % (
            self.pid, timeStr, t - self.times[timeIdx], msg)
        # reset the timers for the next call
        for i in range(timeIdx, self.level):
            self.times[i] = t
        try:
            self.fd.write((lineStr,) % "%s\n")
        except OSError, e:
            pass
dataset/ETHPy150Open sassoftware/conary/conary/lib/tracelog.py/TraceLog.printLog/swapped operands of `%`