Skip to content

Commit 0ea31cb

Browse files
committed
update python.rs to use new PyO3 API
Signed-off-by: Joel Dice <[email protected]>
1 parent b4b33ee commit 0ea31cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn python_generate_bindings(
9898
#[pyo3(name = "script")]
9999
fn python_script(py: Python) -> PyResult<()> {
100100
crate::command::run(
101-
py.import_bound("sys")?
101+
py.import("sys")?
102102
.getattr("argv")?
103103
.extract::<Vec<OsString>>()?,
104104
)

0 commit comments

Comments
 (0)