Skip to content

Commit

Permalink
FIX similar fix in cloudpickle_fast
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreglaser committed Jun 13, 2019
1 parent d967827 commit ca0c8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudpickle/cloudpickle_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _class_getnewargs(obj):
type_kwargs["__slots__"] = obj.__slots__

__dict__ = obj.__dict__.get('__dict__', None)
if isinstance(__dict__, property):
if __dict__ is not None:
type_kwargs['__dict__'] = __dict__

return (type(obj), obj.__name__, obj.__bases__, type_kwargs,
Expand Down Expand Up @@ -153,7 +153,7 @@ def _class_getstate(obj):
for k in obj.__slots__:
clsdict.pop(k, None)

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

return (clsdict, {})

Expand Down

0 comments on commit ca0c8c8

Please sign in to comment.