mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Update vm/src/stdlib/builtins.rs
Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2f3f3f8505
commit
61c325371b
@@ -872,8 +872,6 @@ mod builtins {
|
||||
let bases: PyObjectRef = bases.into();
|
||||
|
||||
// Prepare uses full __getattribute__ resolution chain.
|
||||
// If an AttributeError was raised (None), return an empty dict,
|
||||
// else invoke prepare callable.
|
||||
let namespace = vm
|
||||
.get_attribute_opt(metaclass.clone(), "__prepare__")?
|
||||
.map_or(Ok(vm.ctx.new_dict().into()), |prepare| {
|
||||
|
||||
Reference in New Issue
Block a user