From ecf787713e9ce6391746cf8d4307184b201dbc80 Mon Sep 17 00:00:00 2001 From: Moreal Date: Sat, 14 Aug 2021 13:17:43 +0900 Subject: [PATCH] Remove unnecessary slot wrapper overwriting --- vm/src/builtins/pytype.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/vm/src/builtins/pytype.rs b/vm/src/builtins/pytype.rs index 48c1b9c2e..77e1e195c 100644 --- a/vm/src/builtins/pytype.rs +++ b/vm/src/builtins/pytype.rs @@ -467,8 +467,6 @@ impl PyType { let typ = new(metatype, name.as_str(), base, bases, attributes, slots) .map_err(|e| vm.new_type_error(e))?; - vm.ctx.add_slot_wrappers(&typ); - // avoid deadlock let attributes = typ .attributes