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 62c73ae commit 8deb9deCopy full SHA for 8deb9de
bindings/py/cpp_src/plugin/PyBindRegion.cpp
@@ -335,12 +335,12 @@ namespace py = pybind11;
335
#endif
336
pickle.attr("dump")(*args);
337
338
- // copy the pickle stream into the content as a base64 encoded utf8 string
+ // copy the pickle stream into the content as a base64 encoded utf8 string
339
py::bytes b = f.attr("getvalue")();
340
args = py::make_tuple(b);
341
std::string content = py::str(py::module::import("base64").attr("b64encode")(*args));
342
if (content[1] == '\'') // strip off leading "b'" and trailing "'"
343
- content = content.substr(2, content.length() - 3); f.attr("close")();
+ content = content.substr(2, content.length() - 3);
344
345
f.attr("close")();
346
return content;
0 commit comments