
    hi                        	 d dl mZmZmZmZ n#  ddlZddlZej                            ej        	                    ej                            e
                              Zej                            e           ddlmZmZmZmZ  eej                            ed                    Zdez  Z eej                            ed                    Z[[[[[Y nxY wd dlmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z' d d	l(m)Z)m*Z*m+Z+m,Z,m-Z- d d
l.m/Z/m0Z0m(Z(m1Z1m2Z2 d dl3m3Z3  e0j4        d           i Z5d dl.m6Z7 ddZ8ddZ9 e9             d Z:d Z;dS )   )__version__
__author____doc____license__    N)r   r   get_license_textget_readme_as_rstLICENSEz
%sz	README.md)dumpdumpsloadloadscopyPickler	UnpicklerregisterpicklepicklescheckDEFAULT_PROTOCOLHIGHEST_PROTOCOLHANDLE_FMODECONTENTS_FMODE
FILE_FMODEPickleErrorPickleWarningPicklingErrorPicklingWarningUnpicklingErrorUnpicklingWarning)dump_moduleload_moduleload_module_asdictdump_sessionload_session)detectloggersessionsourcetemp)settingsF)objtypesTc                    ddl m} ddlm} | r t                              |j                   nd |j        D              |r t                              |j                   nd |j        D              t                              |j                   ~d t          t          j                                                  D               |t                     dS )	a  load pickleable and/or unpickleable types to ``dill.types``

    ``dill.types`` is meant to mimic the ``types`` module, providing a
    registry of object types.  By default, the module is empty (for import
    speed purposes). Use the ``load_types`` function to load selected object
    types to the ``dill.types`` module.

    Args:
        pickleable (bool, default=True): if True, load pickleable types.
        unpickleable (bool, default=True): if True, load unpickleable types.

    Returns:
        None
    r   )reloadr   )_objectsc                 D    g | ]}t                               |d           S Nobjectspop.0objs     e/var/www/development/aibuddy-work/election-extract/venv/lib/python3.11/site-packages/dill/__init__.py
<listcomp>zload_types.<locals>.<listcomp>K   &    <<<3S		<<<    c                 D    g | ]}t                               |d           S r1   r2   r5   s     r8   r9   zload_types.<locals>.<listcomp>O   r:   r;   c                 ~    g | ]:}|                     d           dk    t          j                            |          ;S )Type)findtypes__dict__r4   r5   s     r8   r9   zload_types.<locals>.<listcomp>S   sH     8 8 8 # 0 0B 6 6 ^ 6 6 6r;   N)	importlibr.    r/   r3   updatesucceedsfailures
registeredlistrA   rB   keys)
pickleableunpickleabler.   r/   s       r8   
load_typesrM   6   s     !      =x())))<<(*;<<<< =x())))<<(*;<<<<NN8&'''8 8U^-@-@-B-B(C(C 8 8 8 8 F5MMMMMr;   c                 D    ddl m}m} | r |             n
 |             dS )a  add (or remove) dill types to/from the pickle registry

    by default, ``dill`` populates its types to ``pickle.Pickler.dispatch``.
    Thus, all ``dill`` types are available upon calling ``'import pickle'``.
    To drop all ``dill`` types from the ``pickle`` dispatch, *use_dill=False*.

    Args:
        use_dill (bool, default=True): if True, extend the dispatch table.

    Returns:
        None
    r   )_revert_extension_extendN)_dillrO   rP   )use_dillrO   rP   s      r8   extendrS   X   sD     21111111 





Fr;   c                  .    t          t                     dS )zprint licenseN)printr    r;   r8   licenserW   m   s    	;
Fr;   c                  >    t          t          dd                    dS )zprint citationiiN)rU   r   rV   r;   r8   citationrY   r   s    	749
Fr;   )TT)T)<__info__r   r   r   r   ossyspathdirnameabspath__file__parentappendversionr   r	   joinrQ   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r(   r!   r"   r#   r$   r%   rD   r&   r'   r)   r*   r+   tracer3   r,   rA   rM   rS   rW   rY   rV   r;   r8   <module>rf      s)  =GGGGGGGGGGGGG=IIIJJJW__RW__RW__X-F-FGGHHFHOOF> > > > > > > > > > > >""27<<	#B#BCCK;&KV[ A ABBG
C)+<+<+<                                                             4 3 3 3 3 3 3 3 3 3 3 3 3 3       U   
              D   $   
    s
    CC