diff options
author | Martin Matusiak <numerodix@gmail.com> | 2014-03-12 20:24:16 +0100 |
---|---|---|
committer | Martin Matusiak <numerodix@gmail.com> | 2014-03-12 20:24:16 +0100 |
commit | 5a220dfd6ad08138a8904d7ae9eabd71e509bfd3 (patch) | |
tree | 88fdcf92ad10b181d7e5e0a71ede55fe6657a51a | |
parent | ddd984b72786c1cad8260f93d709e4e0cf77ac1a (diff) | |
download | ansicolor-5a220dfd6ad08138a8904d7ae9eabd71e509bfd3.tar.gz |
make colordiff not rely on deprecated color kwarg
-rw-r--r-- | ansicolor/ansicolor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ansicolor/ansicolor.py b/ansicolor/ansicolor.py index cf3f3af..921f348 100644 --- a/ansicolor/ansicolor.py +++ b/ansicolor/ansicolor.py @@ -388,8 +388,8 @@ def colordiff(x, y, color_x=Colors.Cyan, color_y=Colors.Green, debug=False): y_spans.append((bid, bid + 1)) (bid, b) = it_y() - x_fmt = highlight_string(x, x_spans, reverse=True, color=color_x) - y_fmt = highlight_string(y, y_spans, reverse=True, color=color_y) + x_fmt = highlight_string(x, x_spans, reverse=True, colors=[color_x]) + y_fmt = highlight_string(y, y_spans, reverse=True, colors=[color_y]) return x_fmt, y_fmt |