Home
last modified time | relevance | path

Searched refs:version_obj (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython3/Python/
D_warnings.c390 PyObject *version_obj, *already_warned; in already_warned() local
400 version_obj = _PyDict_GetItemIdWithError(registry, &PyId_version); in already_warned()
401 if (version_obj == NULL in already_warned()
402 || !PyLong_CheckExact(version_obj) in already_warned()
403 || PyLong_AsLong(version_obj) != st->filters_version) in already_warned()
409 version_obj = PyLong_FromLong(st->filters_version); in already_warned()
410 if (version_obj == NULL) in already_warned()
412 if (_PyDict_SetItemId(registry, &PyId_version, version_obj) < 0) { in already_warned()
413 Py_DECREF(version_obj); in already_warned()
416 Py_DECREF(version_obj); in already_warned()