mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
parameter name change
This commit is contained in:
parent
7983c94ef8
commit
5c4b17685e
1 changed files with 2 additions and 2 deletions
|
|
@ -366,7 +366,7 @@ def colorize(color, text):
|
|||
else:
|
||||
return text
|
||||
|
||||
def _colordiff(a, b, highlight='red', second_highlight='lightgray'):
|
||||
def _colordiff(a, b, highlight='red', minor_highlight='lightgray'):
|
||||
"""Given two values, return the same pair of strings except with
|
||||
their differences highlighted in the specified color. Strings are
|
||||
highlighted intelligently to show differences; other values are
|
||||
|
|
@ -407,7 +407,7 @@ def _colordiff(a, b, highlight='red', second_highlight='lightgray'):
|
|||
if a[a_start:a_end].lower() != b[b_start:b_end].lower():
|
||||
color = highlight
|
||||
else:
|
||||
color = second_highlight
|
||||
color = minor_highlight
|
||||
a_out.append(colorize(color, a[a_start:a_end]))
|
||||
b_out.append(colorize(color, b[b_start:b_end]))
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue