
    'YHh                          d Z ddlmZ d Zd Zy)zHelper files for pickling    )get_file_objc                 v    ddl }t        |d      5 }|j                  | |d       ddd       y# 1 sw Y   yxY w)z
    Save the object to file via pickling.

    Parameters
    ----------
    fname : {str, pathlib.Path}
        Filename to pickle to
    r   Nwb)protocol)pickler   dump)objfnamer   fouts       S/var/www/html/planif/env/lib/python3.12/site-packages/statsmodels/iolib/smpickle.pysave_pickler      s:     	eT	" ,dC+, , ,s   /8c                 p    ddl }t        | d      5 }|j                  |      cddd       S # 1 sw Y   yxY w)a  
    Load a previously saved object

    .. warning::

       Loading pickled models is not secure against erroneous or maliciously
       constructed data. Never unpickle data received from an untrusted or
       unauthenticated source.

    Parameters
    ----------
    fname : {str, pathlib.Path}
        Filename to unpickle

    Notes
    -----
    This method can be used to load *both* models and results.
    r   Nrb)r   r   load)r   r   fins      r   load_pickler      s4    & 	eT	"  c{{3     s   ,5N)__doc__statsmodels.iolib.openfiler   r   r        r   <module>r      s     3, r   