Skip to content

Commit 1b2fcc0

Browse files
authored
Bump pyo3-file and avoid extra gil acquire (developmentseed#406)
1 parent 98af05a commit 1b2fcc0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ indexmap = "2"
2929
object_store = "0.12"
3030
pyo3 = { version = "0.24", features = ["macros", "indexmap"] }
3131
pyo3-async-runtimes = { version = "0.24", features = ["tokio-runtime"] }
32-
pyo3-file = "0.11"
32+
pyo3-file = "0.12"
3333
thiserror = "1"
3434
tokio = "1.40"
3535
url = "2"

obstore/src/put.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl<'py> FromPyObject<'py> for PutInput {
249249
// Check for file-like object
250250
else if ob.hasattr(intern!(py, "read"))? && ob.hasattr(intern!(py, "seek"))? {
251251
Ok(Self::Pull(PullSource::FileLike(
252-
PyFileLikeObject::with_requirements(ob.clone().unbind(), true, false, true, false)?,
252+
PyFileLikeObject::py_with_requirements(ob.clone(), true, false, true, false)?,
253253
)))
254254
}
255255
// Ensure we check _first_ for an async generator before a sync one

0 commit comments

Comments
 (0)