File size: 416 Bytes
7885a28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Small shim of loky's cloudpickle_wrapper to avoid failure when
multiprocessing is not available.
"""

from ._multiprocessing_helpers import mp


def _my_wrap_non_picklable_objects(obj, keep_wrapper=True):
    return obj


if mp is not None:
    from .externals.loky import wrap_non_picklable_objects
else:
    wrap_non_picklable_objects = _my_wrap_non_picklable_objects

__all__ = ["wrap_non_picklable_objects"]