Ack! Restore the COUNT_ALLOCS one_strings code.

This commit is contained in:
Tim Peters 2001-05-09 00:31:40 +00:00
parent cf5ad5d6f6
commit b4bbcd76ea
1 changed files with 5 additions and 1 deletions

View File

@ -563,8 +563,12 @@ string_item(PyStringObject *a, register int i)
v = (PyObject *)characters[*pchar & UCHAR_MAX];
if (v == NULL)
v = PyString_FromStringAndSize(pchar, 1);
else
else {
#ifdef COUNT_ALLOCS
one_strings++;
#endif
Py_INCREF(v);
}
return v;
}