Skip to content

Commit 66c62af

Browse files
committed
Tokens are a tuple and need to be string formatted as such
1 parent 24ba1bb commit 66c62af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tokdiff.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@
2424
for op, a1, a2, b1, b2 in sm.get_opcodes():
2525
if op == 'equal':
2626
for item in a[a1:a2]:
27-
print " %s" % item
27+
print " %s: %s" % item
2828
elif op == 'replace':
2929
print "~~~"
3030
for item in a[a1:a2]:
31-
print "- %s" % item
31+
print "- %s: %s" % item
3232
for item in b[b1:b2]:
33-
print "+ %s" % item
33+
print "+ %s: %s" % item
3434
print "~~~"
3535
elif op == 'insert':
3636
for item in b[b1:b2]:
37-
print "+ %s" % item
37+
print "+ %s: %s" % item
3838
elif op == 'delete':
3939
for item in a[a1:a2]:
40-
print "- %s" % item
40+
print "- %s: %s" % item
4141
else:
4242
print "<<%s>>" % op
4343

0 commit comments

Comments
 (0)