From 7bc8cdd95507533a4a7955e086a261372c2dec93 Mon Sep 17 00:00:00 2001 From: Martin Matusiak Date: Mon, 10 Mar 2014 19:07:56 +0100 Subject: update docs to use colorize over wrap_string --- docs/snippets/getting_started_3.png | Bin 2620 -> 2747 bytes docs/snippets/getting_started_3.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/snippets/getting_started_3.png b/docs/snippets/getting_started_3.png index 275dc66..2ec3660 100644 Binary files a/docs/snippets/getting_started_3.png and b/docs/snippets/getting_started_3.png differ diff --git a/docs/snippets/getting_started_3.py b/docs/snippets/getting_started_3.py index c7d3b62..c0d9a1c 100644 --- a/docs/snippets/getting_started_3.py +++ b/docs/snippets/getting_started_3.py @@ -1,4 +1,4 @@ from ansicolor import Colors -from ansicolor import wrap_string +from ansicolor import colorize -print(wrap_string("I'm blue, said the smurf.", 8, Colors.Blue)) +print(colorize('''"I'm blue", said the smurf.''', Colors.Blue, start=1, end=9)) -- cgit v1.2.1