def _unpickle(fobj, filename='', mmap_mode=None):
 unpickler = NumpyUnpickler(filename, fobj, mmap_mode=mmap_mode)
 obj = None
 try:
  obj = unpickler.load()
  if unpickler.compat_mode:
   warnings.warn(("The file '%s' has been generated with a joblib version less than 0.10. Please regenerate this pickle file." % filename), DeprecationWarning, stacklevel=3)
 except UnicodeDecodeError as exc:
  if PY3_OR_LATER:
   new_exc = ValueError('You may be trying to read with python 3 a joblib pickle generated with python 2. This feature is not supported by joblib.')
   new_exc.__cause__ = exc
   raise new_exc
  raise
 return obj

def _unpickle ( fobj , filename = '' , mmap_mode = None ) : unpickler = NumpyUnpickler ( filename , fobj , mmap_mode = mmap_mode ) obj = None try : obj = unpickler . load ( ) if unpickler . compat_mode : warnings . warn ( ( "The file '%s' has been generated with a joblib version less than 0.10. Please regenerate this pickle file." % filename ) , DeprecationWarning , stacklevel = 3 ) except UnicodeDecodeError as exc : if PY3_OR_LATER : new_exc = ValueError ( 'You may be trying to read with python 3 a joblib pickle generated with python 2. This feature is not supported by joblib.' ) new_exc . __cause__ = exc raise new_exc raise return obj
internal unpickling function .