summaryrefslogtreecommitdiff
path: root/textutils.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2006-11-08 17:00:02 +0100
committerSylvain <syt@logilab.fr>2006-11-08 17:00:02 +0100
commit5152958ecda94ba39ed36fbc625bc5cd39ebab4d (patch)
treeccba85222bad5ff9a63c2ed95b216a2ef27c7724 /textutils.py
parent907582a18893d133346ab235412609824b25b7bd (diff)
downloadlogilab-common-5152958ecda94ba39ed36fbc625bc5cd39ebab4d.tar.gz
reorganize, deprecation warning for deprecated stuff, remove old deprecated function/methods
Diffstat (limited to 'textutils.py')
-rw-r--r--textutils.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/textutils.py b/textutils.py
index 17ccbfe..c319d7f 100644
--- a/textutils.py
+++ b/textutils.py
@@ -15,9 +15,8 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""Some text manipulation utility functions.
-:version: $Revision: 1.25 $
:author: Logilab
-:copyright: 2003-2005 LOGILAB S.A. (Paris, FRANCE)
+:copyright: 2003-2006 LOGILAB S.A. (Paris, FRANCE)
:contact: http://www.logilab.fr/ -- mailto:python-projects@logilab.org
:group text formatting: normalize_text, normalize_paragraph, pretty_match,\
@@ -46,28 +45,10 @@ unquote, colorize_ansi
ANSI terminal code reseting format defined by a previous ANSI escape sequence
"""
-__revision__ = "$Id: textutils.py,v 1.25 2005-09-06 08:51:01 alf Exp $"
__docformat__ = "restructuredtext en"
import re
from os import linesep
-from warnings import warn
-
-
-def searchall(rgx, data):
- """apply a regexp using "search" until no more match is found
-
- This function is deprecated, use re.finditer() instead.
- """
- warn('logilab.common.textutils.searchall() is deprecated, use '
- 're.finditer() instead', DeprecationWarning)
- result = []
- match = rgx.search(data)
- while match is not None:
- result.append(match)
- match = rgx.search(data, match.end())
- return result
-
def unquote(string):
"""remove optional quotes (simple or double) from the string