[Python-checkins] CVS: python/dist/src/Lib UserString.py,1.1,1.2

Guido van Rossum python-dev@python.org
Tue, 11 Apr 2000 11:36:13 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Lib
In directory eric:/projects/python/develop/guido/src/Lib

Modified Files:
	UserString.py 
Log Message:
Marc-Andre Lemburg:

The maxsplit functionality in .splitlines() was replaced by the keepends
functionality which allows keeping the line end markers together
with the string.


Index: UserString.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/UserString.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** UserString.py	2000/04/03 03:51:49	1.1
--- UserString.py	2000/04/11 15:36:10	1.2
***************
*** 97,101 ****
      def split(self, sep=None, maxsplit=-1): 
          return self.data.split(sep, maxsplit)
!     def splitlines(self, maxsplit=-1): return self.data.splitlines(maxsplit)
      def startswith(self, prefix, start=0, end=sys.maxint): 
          return self.data.startswith(prefix, start, end)
--- 97,101 ----
      def split(self, sep=None, maxsplit=-1): 
          return self.data.split(sep, maxsplit)
!     def splitlines(self, keepends=0): return self.data.splitlines(keepends)
      def startswith(self, prefix, start=0, end=sys.maxint): 
          return self.data.startswith(prefix, start, end)