[Python-checkins] python/dist/src/Lib string.py,1.65,1.66
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Fri, 08 Nov 2002 04:10:02 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv13180/Lib
Modified Files:
string.py
Log Message:
Make strip behave as documented. Will backport to 2.2.3.
Index: string.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/string.py,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** string.py 14 Oct 2002 20:03:40 -0000 1.65
--- string.py 8 Nov 2002 12:09:59 -0000 1.66
***************
*** 75,79 ****
# Strip leading and trailing tabs and spaces
! def strip(s):
"""strip(s) -> string
--- 75,79 ----
# Strip leading and trailing tabs and spaces
! def strip(s, chars=None):
"""strip(s) -> string
***************
*** 82,86 ****
"""
! return s.strip()
# Strip leading tabs and spaces
--- 82,86 ----
"""
! return s.strip(chars)
# Strip leading tabs and spaces