def dumpdiff(dump1, dump2): with open(dump1) as f: data1, resp1 = readdump(f) with open(dump2) as f: data2, resp2 = readdump(f) diff(data1, data2) print '-' * 20 diff(resp1, resp2)
def analyse(filename): s = [] with open(filename, "rt") as dump: data, response = readdump(dump) s.append(TYPES[data[0]]) s.append(str(len(data))) s.append(str(len(response))) print " ".join(s) try: longanalyse(data) except: print filename raise
def analyse(filename): s = [] with open(filename, 'rt') as dump: data, response = readdump(dump) s.append(TYPES[data[0]]) s.append(str(len(data))) s.append(str(len(response))) print ' '.join(s) try: longanalyse(data) except: print filename raise