mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-23 08:59:43 +00:00
Fix more merge errors
This commit is contained in:
parent
dbb3e6bf8a
commit
a6923626c0
@ -501,9 +501,9 @@ PYBIND11_NOINLINE std::string error_string(PyObject *type, PyObject *value, PyOb
|
||||
Py_INCREF(f_code);
|
||||
# endif
|
||||
int lineno = PyFrame_GetLineNumber(frame);
|
||||
result += " " + handle(f_code->co_filename).cast<std::string>() + "("
|
||||
result += std::string(" ") + handle(f_code->co_filename).cast<std::string>() + '('
|
||||
+ std::to_string(lineno)
|
||||
+ "): " + handle(f_code->co_name).cast<std::string>() + "\n";
|
||||
+ "): " + handle(f_code->co_name).cast<std::string>() + '\n';
|
||||
frame = frame->f_back;
|
||||
Py_DECREF(f_code);
|
||||
}
|
||||
|
@ -363,8 +363,8 @@ T reinterpret_steal(handle h) {
|
||||
}
|
||||
|
||||
PYBIND11_NAMESPACE_BEGIN(detail)
|
||||
inline std::string error_string();
|
||||
inline std::string error_string(PyObject *, PyObject *, PyObject *);
|
||||
std::string error_string();
|
||||
std::string error_string(PyObject *, PyObject *, PyObject *);
|
||||
PYBIND11_NAMESPACE_END(detail)
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
Loading…
Reference in New Issue
Block a user