Fix diff tool
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 11 Apr 2012 21:33:02 +0000 (17:33 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 11 Apr 2012 21:33:02 +0000 (17:33 -0400)
test/shaping/hb_test_tools.py

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