summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Matusiak <numerodix@gmail.com>2014-03-12 20:24:16 +0100
committerMartin Matusiak <numerodix@gmail.com>2014-03-12 20:24:16 +0100
commit5a220dfd6ad08138a8904d7ae9eabd71e509bfd3 (patch)
tree88fdcf92ad10b181d7e5e0a71ede55fe6657a51a
parentddd984b72786c1cad8260f93d709e4e0cf77ac1a (diff)
downloadansicolor-5a220dfd6ad08138a8904d7ae9eabd71e509bfd3.tar.gz
make colordiff not rely on deprecated color kwarg
-rw-r--r--ansicolor/ansicolor.py4
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