Skip to content

Commit 63c4f3b

Browse files
committed
Remove unneeded extra object from bases list.
1 parent 277332c commit 63c4f3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vm/src/builtins.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,9 @@ pub fn make_module(ctx: &PyContext) -> PyObjectRef {
637637
pub fn builtin_build_class_(vm: &mut VirtualMachine, mut args: PyFuncArgs) -> PyResult {
638638
let function = args.shift();
639639
let name_arg = args.shift();
640-
let mut bases = args.args.clone();
640+
let bases = args.args.clone();
641641
let metaclass = args.get_kwarg("metaclass", vm.get_type());
642642

643-
bases.push(vm.context().object());
644643
let namespace = vm.new_dict();
645644
&vm.invoke(
646645
function,

0 commit comments

Comments
 (0)