diff options
author | Fred Drake <fdrake@acm.org> | 2000-12-06 14:27:49 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-12-06 14:27:49 (GMT) |
commit | 49312a52ece5819990e870ad75ed8422934fb2cc (patch) | |
tree | 629e898d28d3d77312a5bde8c0dab33855413e8c /Objects | |
parent | f7e84e12b3fd591b959ce0bcb1e84361694d685e (diff) | |
download | cpython-49312a52ece5819990e870ad75ed8422934fb2cc.zip cpython-49312a52ece5819990e870ad75ed8422934fb2cc.tar.gz cpython-49312a52ece5819990e870ad75ed8422934fb2cc.tar.bz2 |
Jeffrey D. Collins <tokeneater@users.sourceforge.net>:
Fix type of the self parameter to some string object methods.
This closes patch #102670.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/stringobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 47da4ed..8bc97f7 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1143,7 +1143,7 @@ Return a titlecased version of S, i.e. words start with uppercase\n\ 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 @@ Return 1 if all characters in S are alphabetic\n\ 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 @@ Return 1 if all characters in S are alphanumeric\n\ 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); |