Skip to content

Commit b588122

Browse files
Update src/utils.rs
Co-authored-by: Tim Saucer <[email protected]>
1 parent d3c46bb commit b588122

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ where
9292
// a signal was already set during a previous Python API call.
9393
// Running even trivial Python code forces the interpreter to
9494
// process any pending signals (like KeyboardInterrupt).
95-
let code = CString::new("pass").unwrap();
96-
py.run(code.as_c_str(), None, None)?;
95+
py.run(cr"pass", None, None)?;
9796
py.check_signals()
9897
})?;
9998
}

0 commit comments

Comments
 (0)