We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3c46bb commit b588122Copy full SHA for b588122
src/utils.rs
@@ -92,8 +92,7 @@ where
92
// a signal was already set during a previous Python API call.
93
// Running even trivial Python code forces the interpreter to
94
// process any pending signals (like KeyboardInterrupt).
95
- let code = CString::new("pass").unwrap();
96
- py.run(code.as_c_str(), None, None)?;
+ py.run(cr"pass", None, None)?;
97
py.check_signals()
98
})?;
99
}
0 commit comments