fixed select_buffer in the lib

Former-commit-id: 13c418ed5990300a0c15278e490726dd01680dd2
This commit is contained in:
Camillo Schenone 2023-11-24 11:44:08 +01:00
parent a22d8ff6e1
commit 7bac395fc4
2 changed files with 5 additions and 2 deletions

View file

@ -1 +1 @@
c89068ebc710e18686da3486ffb87421db21e058 55ed2ebf31cde48dafa1993cd5227bbe01669172

View file

@ -169,7 +169,10 @@ impl PyClientHandle {
.await .await
.map_err(PyCodempError::from)?; .map_err(PyCodempError::from)?;
Ok(cont) Python::with_gil(|py| {
let pystr: Py<PyString> = PyString::new(py, cont.as_str()).into();
Ok(pystr)
})
}) })
} }
} }