diff options
author | Martin Matusiak <numerodix@gmail.com> | 2014-03-10 19:25:28 +0100 |
---|---|---|
committer | Martin Matusiak <numerodix@gmail.com> | 2014-03-10 19:47:11 +0100 |
commit | 92d8173378fc099340f74323e87091ede1b38cc7 (patch) | |
tree | d1bdbcaf847a572c14850e22dcd984e5381b4880 /ansicolor | |
parent | 151e82f4b73d0748934331b1f39111cb7ef2040e (diff) | |
download | ansicolor-92d8173378fc099340f74323e87091ede1b38cc7.tar.gz |
mark wrap_string as deprecated
Diffstat (limited to 'ansicolor')
-rw-r--r-- | ansicolor/ansicolor.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ansicolor/ansicolor.py b/ansicolor/ansicolor.py index ddf4432..799089f 100644 --- a/ansicolor/ansicolor.py +++ b/ansicolor/ansicolor.py @@ -5,6 +5,7 @@ import difflib import os import re import sys +import warnings __all__ = [ # noqa @@ -181,8 +182,13 @@ def wrap_string(s, pos, color, bold=False, reverse=False): :param bool bold: Whether to mark up in bold. :param bool reverse: Whether to mark up in reverse video. :rtype: string + + .. deprecated:: 0.2.2 + This function has been deprecated in favor of :func:`colorize`. """ + warnings.warn("wrap_string is deprecated", PendingDeprecationWarning, 2) + if _disabled: if pos == 0: pos = 1 |