Skip to content

Commit 5419d3e

Browse files
authored
Merge pull request #30 from kylebarron/kyle/bump-pyo3-0.25
Bump to pyo3 0.25
2 parents 6c677dd + 45814c5 commit 5419d3e

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = ["Omer Ben-Amram <[email protected]>"]
1111
edition = "2018"
1212

1313
[dependencies]
14-
pyo3 = { version = ">=0.24,<0.25" }
14+
pyo3 = { version = ">=0.25,<0.26" }
1515

1616
[dev-dependencies]
1717
skeptic = "0.13.7"

examples/path_or_file_like/Cargo.lock

Lines changed: 10 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/path_or_file_like/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ crate-type = ["cdylib"]
1111

1212
[dependencies]
1313
pyo3-file = { path = "../../" }
14-
pyo3 = { version = ">=0.24,<0.25", features = ["extension-module", "abi3-py37"] }
14+
pyo3 = { version = ">=0.25,<0.26", features = [
15+
"extension-module",
16+
"abi3-py37",
17+
] }

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ impl PyFileLikeObject {
148148
let number_bytes_written = inner.call_method1(consts::write(py), (arg,))?;
149149

150150
if number_bytes_written.is_none() {
151-
return Err(io::Error::new(
152-
io::ErrorKind::Other,
151+
return Err(io::Error::other(
153152
"write() returned None, expected number of bytes written",
154153
));
155154
}

0 commit comments

Comments
 (0)