forked from Rust-related/RustPython
PyObjectRef -> &PyObj, &PyRef<T> -> &Py<T>
This commit is contained in:
@@ -88,7 +88,7 @@ impl<'vm> ShellHelper<'vm> {
|
||||
} else {
|
||||
// we need to get a variable based off of globals/builtins
|
||||
|
||||
let globals = str_iter_method(self.globals.as_object().clone(), "keys").ok()?;
|
||||
let globals = str_iter_method(self.globals.as_object().incref(), "keys").ok()?;
|
||||
let builtins = str_iter_method(self.vm.builtins.clone(), "__dir__").ok()?;
|
||||
(first, globals, Some(builtins))
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user