[Python-checkins] python/dist/src/Lib formatter.py, 1.24,
1.25 string.py, 1.87, 1.88 stringold.py, 1.48, 1.49
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Tue Dec 7 08:55:27 CET 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28318
Modified Files:
formatter.py string.py stringold.py
Log Message:
Remove outdated references to the regsub module.
Index: formatter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/formatter.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- formatter.py 12 Feb 2004 17:35:06 -0000 1.24
+++ formatter.py 7 Dec 2004 07:55:06 -0000 1.25
@@ -177,7 +177,6 @@
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: string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/string.py,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- string.py 1 Nov 2004 03:52:43 -0000 1.87
+++ string.py 7 Dec 2004 07:55:06 -0000 1.88
@@ -43,7 +43,6 @@
# 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 @@
return ''.join(L)
-
+
####################################################################
import re as _re
@@ -205,7 +204,7 @@
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.
Index: stringold.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/stringold.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- stringold.py 12 Feb 2004 17:35:07 -0000 1.48
+++ stringold.py 7 Dec 2004 07:55:07 -0000 1.49
@@ -363,7 +363,6 @@
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
More information about the Python-checkins
mailing list