Fix diff tool

This commit is contained in:
Behdad Esfahbod 2012-04-11 17:33:02 -04:00
parent 41ae674f68
commit e95d912b3b
1 changed files with 2 additions and 2 deletions

View File

@ -99,9 +99,9 @@ class FancyDiffer:
sys.stdout.writelines (FancyDiffer.diff_lines (l1, l2, colors)) sys.stdout.writelines (FancyDiffer.diff_lines (l1, l2, colors))
# print out residues # print out residues
for l in f1: for l in f1:
sys.stdout.writelines (["-", colors.red, l1, colors.end]) sys.stdout.writelines (["-", colors.red, l, colors.end])
for l in f1: for l in f1:
sys.stdout.writelines (["-", colors.green, l1, colors.end]) sys.stdout.writelines (["-", colors.green, l, colors.end])
except IOError as e: except IOError as e:
if e.errno != errno.EPIPE: if e.errno != errno.EPIPE:
print >> sys.stderr, "%s: %s: %s" % (sys.argv[0], e.filename, e.strerror) print >> sys.stderr, "%s: %s: %s" % (sys.argv[0], e.filename, e.strerror)