Commit 2f6895e9 authored by Tim Peters's avatar Tim Peters

Ack! Restore the COUNT_ALLOCS one_strings code.

parent 07e75e8f
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment