Searched refs:version_obj (Results 1 – 1 of 1) sorted by relevance
250 PyObject *version_obj, *already_warned; in already_warned() local256 version_obj = _PyDict_GetItemId(registry, &PyId_version); in already_warned()257 if (version_obj == NULL in already_warned()258 || !PyLong_CheckExact(version_obj) in already_warned()259 || PyLong_AsLong(version_obj) != _PyRuntime.warnings.filters_version) in already_warned()265 version_obj = PyLong_FromLong(_PyRuntime.warnings.filters_version); in already_warned()266 if (version_obj == NULL) in already_warned()268 if (_PyDict_SetItemId(registry, &PyId_version, version_obj) < 0) { in already_warned()269 Py_DECREF(version_obj); in already_warned()272 Py_DECREF(version_obj); in already_warned()