This commit is contained in:
Kovid Goyal 2020-01-06 15:53:07 +05:30
parent 6f1e8c863f
commit f5abd0e252
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -745,6 +745,7 @@ static PyObject *
icu_BreakIterator_count_words(icu_BreakIterator *self, PyObject *args) { icu_BreakIterator_count_words(icu_BreakIterator *self, PyObject *args) {
unsigned long ans = 0; unsigned long ans = 0;
do_split(self, count_words_callback, &ans); do_split(self, count_words_callback, &ans);
if (PyErr_Occurred()) return NULL;
return Py_BuildValue("k", ans); return Py_BuildValue("k", ans);
} }