(&self, scope: Scope, source: &str)
| 45 | } |
| 46 | |
| 47 | pub fn run_block_expr(&self, scope: Scope, source: &str) -> PyResult { |
| 48 | let code_obj = self |
| 49 | .compile(source, compiler::Mode::BlockExpr, "<embedded>".to_owned()) |
| 50 | .map_err(|err| self.new_syntax_error(&err, Some(source)))?; |
| 51 | self.run_code_obj(code_obj, scope) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | #[cfg(feature = "host_env")] |
no test coverage detected