def process (res): result = [] for ((a, b, c), d) in res: mapline = stridgen.makeid(d) if mapline is None: mapline = "ERROR" result.append("%3d %3d %3d %s" % (a, b, c, mapline)) return result
def process(res): result = [] for ((a, b, c), d) in res: mapline = stridgen.makeid(d) if mapline is None: mapline = "ERROR" result.append("%3d %3d %3d %s" % (a, b, c, mapline)) return result
def process(res): result = [] for line in res: line = line.strip() if len(line) == 0: continue mapline = stridgen.makeid(line) # Remap not to .lst files but to .ls2 ones. if line.endswith("lst"): line = os.path.splitext(line)[0] + ".ls2" if mapline is None: toadd = "# NO MATCH FOR %s" % line else: toadd = "%s = %s" % (mapline, line) if toadd not in result: result.append(toadd) result.sort() return result
def process(res): result = [] for line in res: line = line.strip() if len(line) == 0: continue mapline = stridgen.makeid(line) # Remap not to .lst files but to .ls2 ones. if line.endswith('lst'): line = os.path.splitext(line)[0] + '.ls2' if mapline is None: toadd = "# NO MATCH FOR %s" % line else: toadd = "%s = %s" % (mapline, line) if toadd not in result: result.append(toadd) result.sort() return result