[Python-checkins] CVS: python/dist/src/Objects stringobject.c,2.94,2.95

Fred L. Drake python-dev@python.org
Wed, 6 Dec 2000 06:27:51 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv14225

Modified Files:
	stringobject.c 
Log Message:

Jeffrey D. Collins <tokeneater@users.sourceforge.net>:
Fix type of the self parameter to some string object methods.

This closes patch #102670.


Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.94
retrieving revision 2.95
diff -C2 -r2.94 -r2.95
*** stringobject.c	2000/11/30 05:22:44	2.94
--- stringobject.c	2000/12/06 14:27:49	2.95
***************
*** 1144,1148 ****
  
  static PyObject*
! string_title(PyUnicodeObject *self, PyObject *args)
  {
  	char *s = PyString_AS_STRING(self), *s_new;
--- 1144,1148 ----
  
  static PyObject*
! string_title(PyStringObject *self, PyObject *args)
  {
  	char *s = PyString_AS_STRING(self), *s_new;
***************
*** 1975,1979 ****
  
  static PyObject*
! string_isalpha(PyUnicodeObject *self, PyObject *args)
  {
      register const unsigned char *p
--- 1975,1979 ----
  
  static PyObject*
! string_isalpha(PyStringObject *self, PyObject *args)
  {
      register const unsigned char *p
***************
*** 2009,2013 ****
  
  static PyObject*
! string_isalnum(PyUnicodeObject *self, PyObject *args)
  {
      register const unsigned char *p
--- 2009,2013 ----
  
  static PyObject*
! string_isalnum(PyStringObject *self, PyObject *args)
  {
      register const unsigned char *p