Remove outdated references to the regsub module.

This commit is contained in:
Raymond Hettinger 2004-12-07 07:55:07 +00:00
parent a6b45cc31d
commit 57aef9cb29
3 changed files with 2 additions and 5 deletions

View file

@ -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.