mirror of
https://github.com/python/cpython.git
synced 2026-02-22 23:21:08 +00:00
gh-144702: Use standard terminology in class pattern error message (#144703)
This commit is contained in:
parent
52794cba13
commit
1d099164bc
2 changed files with 3 additions and 1 deletions
|
|
@ -534,7 +534,7 @@ _PyEval_MatchClass(PyThreadState *tstate, PyObject *subject, PyObject *type,
|
|||
Py_ssize_t nargs, PyObject *kwargs)
|
||||
{
|
||||
if (!PyType_Check(type)) {
|
||||
const char *e = "called match pattern must be a class";
|
||||
const char *e = "class pattern must refer to a class";
|
||||
_PyErr_Format(tstate, PyExc_TypeError, e);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue