*** makeisbn.py Tue Apr 10 18:25:28 2001 --- makeisbn.py.new Tue Apr 10 18:26:10 2001 *************** *** 95,101 **** #sys.stdout.write(line + comment + '\n') lineout(line, None, comment) continue ! if (matchesall(bardigits, line) and (linelen == 13 or linelen == 19)): if (line[0:3] != '978'): #sys.stdout.write('# ' + line + ' : not a 978 EAN' + comment + '\n') lineout(line, 'not a 978 EAN', comment) --- 95,101 ---- #sys.stdout.write(line + comment + '\n') lineout(line, None, comment) continue ! if (matchesall(bardigits, line) and (linelen == 13 or linelen == 18)): if (line[0:3] != '978'): #sys.stdout.write('# ' + line + ' : not a 978 EAN' + comment + '\n') lineout(line, 'not a 978 EAN', comment) *************** *** 109,117 **** # ' : UPC barcode requires five-digit extension' + comment + '\n') lineout(line, 'UPC barcode requires five-digit extension', comment) continue ! if (matchesall(bardigits, line) and linelen == 18): prefix = line[0:6] ! suffix = line[13:18] if (not upcmap.has_key(prefix)): #sys.stdout.write('# ' + line + ' : Unknown UPC prefix ' # + prefix + comment + '\n') --- 109,117 ---- # ' : UPC barcode requires five-digit extension' + comment + '\n') lineout(line, 'UPC barcode requires five-digit extension', comment) continue ! if (matchesall(bardigits, line) and linelen == 17): prefix = line[0:6] ! suffix = line[12:17] if (not upcmap.has_key(prefix)): #sys.stdout.write('# ' + line + ' : Unknown UPC prefix ' # + prefix + comment + '\n')