Skip to content

Commit ca0c8c8

Browse files
committed
FIX similar fix in cloudpickle_fast
1 parent d967827 commit ca0c8c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudpickle/cloudpickle_fast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _class_getnewargs(obj):
7272
type_kwargs["__slots__"] = obj.__slots__
7373

7474
__dict__ = obj.__dict__.get('__dict__', None)
75-
if isinstance(__dict__, property):
75+
if __dict__ is not None:
7676
type_kwargs['__dict__'] = __dict__
7777

7878
return (type(obj), obj.__name__, obj.__bases__, type_kwargs,
@@ -153,7 +153,7 @@ def _class_getstate(obj):
153153
for k in obj.__slots__:
154154
clsdict.pop(k, None)
155155

156-
clsdict.pop('__dict__', None) # unpicklable property object
156+
clsdict.pop('__dict__', None) # specified in class reconstruction
157157

158158
return (clsdict, {})
159159

0 commit comments

Comments
 (0)