Skip to content

Commit fccee77

Browse files
committed
reduce_newobj - use __class__ instead of type (to cover the weakref proxy case)
1 parent 90a2180 commit fccee77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/lib-graalpython/object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _get_new_arguments(obj):
7070

7171

7272
def reduce_newobj(obj):
73-
cls = type(obj)
73+
cls = obj.__class__
7474
args, kwargs = _get_new_arguments(obj)
7575
import_copyreg()
7676

0 commit comments

Comments
 (0)