Diff output shows formatted values for strings

This is why, in #807, the album field was appearing to "work" while the year
field was displaying the issue. We were colorizing the wrong value.

Now, of course, we need to fix the underlying issue: we're confusingly
displaying album-level information for these items.
This commit is contained in:
Adrian Sampson 2014-06-05 16:53:23 -07:00
parent 29e11f1ddb
commit 63af350eaa

View file

@ -582,7 +582,7 @@ def _field_diff(field, old, new):
# For strings, highlight changes. For others, colorize the whole
# thing.
if isinstance(oldval, basestring):
oldstr, newstr = colordiff(oldval, newval)
oldstr, newstr = colordiff(oldval, newstr)
else:
oldstr, newstr = colorize('red', oldstr), colorize('red', newstr)