File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
1.4.1 (in development)
2
2
======================
3
3
4
+ - Restore compat with loading dynamic classes pickled with cloudpickle
5
+ version 1.2.1 that would reference the ` types.ClassType ` attribute.
6
+ ([ PR #359 ] ( https://github.com/cloudpipe/cloudpickle/pull/359 ) )
4
7
5
8
6
9
1.4.0
Original file line number Diff line number Diff line change @@ -388,6 +388,11 @@ def _cell_set_factory(value):
388
388
389
389
390
390
def _builtin_type (name ):
391
+ if name == "ClassType" : # pragma: no cover
392
+ # Backward compat to load pickle files generated with cloudpickle
393
+ # < 1.3 even if loading pickle files from older versions is not
394
+ # officially supported.
395
+ return type
391
396
return getattr (types , name )
392
397
393
398
You can’t perform that action at this time.
0 commit comments