Skip to content

Commit 8deb9de

Browse files
committed
edit correction
1 parent 62c73ae commit 8deb9de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/py/cpp_src/plugin/PyBindRegion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,12 @@ namespace py = pybind11;
335335
#endif
336336
pickle.attr("dump")(*args);
337337

338-
// copy the pickle stream into the content as a base64 encoded utf8 string
338+
// copy the pickle stream into the content as a base64 encoded utf8 string
339339
py::bytes b = f.attr("getvalue")();
340340
args = py::make_tuple(b);
341341
std::string content = py::str(py::module::import("base64").attr("b64encode")(*args));
342342
if (content[1] == '\'') // strip off leading "b'" and trailing "'"
343-
content = content.substr(2, content.length() - 3); f.attr("close")();
343+
content = content.substr(2, content.length() - 3);
344344

345345
f.attr("close")();
346346
return content;

0 commit comments

Comments
 (0)