diff options
author | Raymond Hettinger <python@rcn.com> | 2004-12-07 07:55:07 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-12-07 07:55:07 (GMT) |
commit | 57aef9cb29c894497110f38949b8efb593a5c0c2 (patch) | |
tree | 6c7bfdcf28f7f14fc5972f7788cc5c781d218e4f /Lib | |
parent | a6b45cc31d33c166c84866f78d504a99d409895c (diff) | |
download | cpython-57aef9cb29c894497110f38949b8efb593a5c0c2.zip cpython-57aef9cb29c894497110f38949b8efb593a5c0c2.tar.gz cpython-57aef9cb29c894497110f38949b8efb593a5c0c2.tar.bz2 |
Remove outdated references to the regsub module.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/formatter.py | 1 | ||||
-rw-r--r-- | Lib/string.py | 5 | ||||
-rw-r--r-- | Lib/stringold.py | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/Lib/formatter.py b/Lib/formatter.py index 109d66c..261090c 100644 --- a/Lib/formatter.py +++ b/Lib/formatter.py @@ -177,7 +177,6 @@ class AbstractFormatter: def add_flowing_data(self, data): if not data: return # The following looks a bit convoluted but is a great improvement over - # data = regsub.gsub('[' + string.whitespace + ']+', ' ', data) prespace = data[:1].isspace() postspace = data[-1:].isspace() data = " ".join(data.split()) diff --git a/Lib/string.py b/Lib/string.py index 7c0e001..ba85a49 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -43,7 +43,6 @@ del l # Functions which aren't available as string methods. # Capitalize the words in a string, e.g. " aBc dEf " -> "Abc Def". -# See also regsub.capwords(). def capwords(s, sep=None): """capwords(s, [sep]) -> string @@ -78,7 +77,7 @@ def maketrans(fromstr, tostr): return ''.join(L) - + #################################################################### import re as _re @@ -205,7 +204,7 @@ class Template: return self.pattern.sub(convert, self.template) - + #################################################################### # NOTE: Everything below here is deprecated. Use string methods instead. # This stuff will go away in Python 3.0. diff --git a/Lib/stringold.py b/Lib/stringold.py index dd2d584..213a04c 100644 --- a/Lib/stringold.py +++ b/Lib/stringold.py @@ -363,7 +363,6 @@ def capitalize(s): return s.capitalize() # Capitalize the words in a string, e.g. " aBc dEf " -> "Abc Def". -# See also regsub.capwords(). def capwords(s, sep=None): """capwords(s, [sep]) -> string |