We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d96a7 commit 6389314Copy full SHA for 6389314
PythonScript/src/ScintillaWrapper.cpp
@@ -57,7 +57,11 @@ std::string ScintillaWrapper::getStringFromObject(boost::python::object o)
57
{
58
boost::python::object utf8Text = o.attr("__str__")();
59
raw = std::string(boost::python::extract<const char *>(utf8Text));
60
- }
+ }
61
+ else if (PyBytes_CheckExact(o.ptr()))
62
+ {
63
+ raw.assign(PyBytes_AsString(o.ptr()), PyBytes_Size(o.ptr()));
64
65
else
66
67
boost::python::object rawString = o.attr("__str__")();
0 commit comments