| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1086,8 +1086,14 @@ warnings_warn_explicit_impl(PyObject *module, PyObject *message, | |||
| 1086 | 1086 | return returned; | |
| 1087 | 1087 | } | |
| 1088 | 1088 | ||
| 1089 | + /*[clinic input] | ||
| 1090 | + _filters_mutated as warnings_filters_mutated | ||
| 1091 | + | ||
| 1092 | + [clinic start generated code]*/ | ||
| 1093 | + | ||
| 1089 | 1094 | static PyObject * | |
| 1090 | - warnings_filters_mutated(PyObject *self, PyObject *Py_UNUSED(args)) | ||
| 1095 | + warnings_filters_mutated_impl(PyObject *module) | ||
| 1096 | + /*[clinic end generated code: output=8ce517abd12b88f4 input=35ecbf08ee2491b2]*/ | ||
| 1091 | 1097 | { | |
| 1092 | 1098 | PyInterpreterState *interp = get_current_interp(); | |
| 1093 | 1099 | if (interp == NULL) { | |
@@ -1344,8 +1350,7 @@ _PyErr_WarnUnawaitedCoroutine(PyObject *coro) | |||
| 1344 | 1350 | static PyMethodDef warnings_functions[] = { | |
| 1345 | 1351 | WARNINGS_WARN_METHODDEF | |
| 1346 | 1352 | WARNINGS_WARN_EXPLICIT_METHODDEF | |
| 1347 | - {"_filters_mutated", _PyCFunction_CAST(warnings_filters_mutated), METH_NOARGS, | ||
| 1348 | - NULL}, | ||
| 1353 | + WARNINGS_FILTERS_MUTATED_METHODDEF | ||
| 1349 | 1354 | /* XXX(brett.cannon): add showwarning? */ | |
| 1350 | 1355 | /* XXX(brett.cannon): Reasonable to add formatwarning? */ | |
| 1351 | 1356 | {NULL, NULL} /* sentinel */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments