]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove outdated references to the regsub module.
authorRaymond Hettinger <python@rcn.com>
Tue, 7 Dec 2004 07:55:07 +0000 (07:55 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 7 Dec 2004 07:55:07 +0000 (07:55 +0000)
Lib/formatter.py
Lib/string.py
Lib/stringold.py

index 109d66cac619c4907bea92698abf6b6067bd634d..261090c837192340b952353f7bd8a13f4203001d 100644 (file)
@@ -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())
index 7c0e001a79acba3d7d2b5460eab8dcb3ca04f5d2..ba85a4983540df12a286b9b3f344abd44b890f76 100644 (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)
 
 
-\f
+
 ####################################################################
 import re as _re
 
@@ -205,7 +204,7 @@ class Template:
         return self.pattern.sub(convert, self.template)
 
 
-\f
+
 ####################################################################
 # NOTE: Everything below here is deprecated.  Use string methods instead.
 # This stuff will go away in Python 3.0.
index dd2d584f7034ed0a16fdacf3f253da756e85e04b..213a04cce7b6df693d3519a74e6f4aaadf05361c 100644 (file)
@@ -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