aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/clinic/_warnings.c.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/clinic/_warnings.c.h')
-rw-r--r--Python/clinic/_warnings.c.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/clinic/_warnings.c.h b/Python/clinic/_warnings.c.h
index 432e554af85..c7166391985 100644
--- a/Python/clinic/_warnings.c.h
+++ b/Python/clinic/_warnings.c.h
@@ -193,9 +193,6 @@ warnings_warn_explicit(PyObject *module, PyObject *const *args, Py_ssize_t nargs
_PyArg_BadArgument("warn_explicit", "argument 'filename'", "str", args[2]);
goto exit;
}
- if (PyUnicode_READY(args[2]) == -1) {
- goto exit;
- }
filename = args[2];
lineno = _PyLong_AsInt(args[3]);
if (lineno == -1 && PyErr_Occurred()) {
@@ -246,4 +243,4 @@ warnings_filters_mutated(PyObject *module, PyObject *Py_UNUSED(ignored))
{
return warnings_filters_mutated_impl(module);
}
-/*[clinic end generated code: output=20429719d7223bdc input=a9049054013a1b77]*/
+/*[clinic end generated code: output=f8d67e0f75771c36 input=a9049054013a1b77]*/