Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 15484:07705177ca6b legacy-trunk
Jeffrey D. Collins <tokeneater@users.sourceforge.net>:
Fix type of the self parameter to some string object methods.
This closes patch #102670.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 06 Dec 2000 14:27:49 +0000 |
| parents | d0146d128897 |
| children | 31d78f361530 |
line wrap: on
line diff
--- a/Objects/stringobject.c Wed Dec 06 10:37:57 2000 +0000 +++ b/Objects/stringobject.c Wed Dec 06 14:27:49 2000 +0000 @@ -1143,7 +1143,7 @@ characters, all remaining cased characters have lowercase."; static PyObject* -string_title(PyUnicodeObject *self, PyObject *args) +string_title(PyStringObject *self, PyObject *args) { char *s = PyString_AS_STRING(self), *s_new; int i, n = PyString_GET_SIZE(self); @@ -1974,7 +1974,7 @@ and there is at least one character in S, 0 otherwise."; static PyObject* -string_isalpha(PyUnicodeObject *self, PyObject *args) +string_isalpha(PyStringObject *self, PyObject *args) { register const unsigned char *p = (unsigned char *) PyString_AS_STRING(self); @@ -2008,7 +2008,7 @@ and there is at least one character in S, 0 otherwise."; static PyObject* -string_isalnum(PyUnicodeObject *self, PyObject *args) +string_isalnum(PyStringObject *self, PyObject *args) { register const unsigned char *p = (unsigned char *) PyString_AS_STRING(self);
