File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2743,18 +2743,18 @@ AttributeError_str(PyObject *op)
27432743 goto done ;
27442744 }
27452745 if (modname && PyUnicode_Check (modname )) {
2746- result = PyUnicode_FromFormat ("module '%U' has no attribute '%U' " ,
2746+ result = PyUnicode_FromFormat ("module %R has no attribute %R " ,
27472747 modname , name );
27482748 Py_DECREF (modname );
27492749 } else {
27502750 Py_XDECREF (modname );
2751- result = PyUnicode_FromFormat ("module has no attribute '%U' " , name );
2751+ result = PyUnicode_FromFormat ("module has no attribute %R " , name );
27522752 }
27532753 } else if (PyType_Check (obj )) {
2754- result = PyUnicode_FromFormat ("type object '%N' has no attribute '%U' " ,
2754+ result = PyUnicode_FromFormat ("type object '%N' has no attribute %R " ,
27552755 obj , name );
27562756 } else {
2757- result = PyUnicode_FromFormat ("'%T' object has no attribute '%U' " ,
2757+ result = PyUnicode_FromFormat ("'%T' object has no attribute %R " ,
27582758 obj , name );
27592759 }
27602760done :
You can’t perform that action at this time.
0 commit comments