Simplify repr() function

This commit is contained in:
xtemp09
2025-08-15 18:25:45 +07:00
committed by Chris Hennes
parent c7aaff410b
commit f20c1a0102
15 changed files with 33 additions and 87 deletions

View File

@@ -307,11 +307,10 @@ Py::Object AbstractSplitViewPy::cast_to_base(const Py::Tuple&)
Py::Object AbstractSplitViewPy::repr()
{
std::ostringstream s_out;
if (!getSplitViewPtr())
throw Py::RuntimeError("Cannot print representation of deleted object");
s_out << "AbstractSplitView";
return Py::String(s_out.str());
return Py::String("AbstractSplitView");
}
// Since with PyCXX it's not possible to make a sub-class of MDIViewPy