Searched refs:already_warned (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Python/ |
D | _warnings.c | 175 already_warned(PyObject *registry, PyObject *key, int should_set) in already_warned() function 177 PyObject *already_warned; in already_warned() local 182 already_warned = PyDict_GetItem(registry, key); in already_warned() 183 if (already_warned != NULL) { in already_warned() 184 int rc = PyObject_IsTrue(already_warned); in already_warned() 242 rc = already_warned(registry, altkey, 1); in update_registry() 347 rc = already_warned(registry, key, 0); in warn_explicit()
|
/external/python/cpython3/Python/ |
D | _warnings.c | 248 already_warned(PyObject *registry, PyObject *key, int should_set) in already_warned() function 250 PyObject *version_obj, *already_warned; in already_warned() local 275 already_warned = PyDict_GetItem(registry, key); in already_warned() 276 if (already_warned != NULL) { in already_warned() 277 int rc = PyObject_IsTrue(already_warned); in already_warned() 335 rc = already_warned(registry, altkey, 1); in update_registry() 535 rc = already_warned(registry, key, 0); in warn_explicit()
|