a
    �Ï?e  ã                   @   sF   d Z ddlZddlmZ g d¢ZddgZG dd	„ d	ejejejƒZ	dS )
a  A backend module to load and dump pickle files.

- Format to support: Pickle
- Requirements: It should be available always.

  - pickle/cPickle in python 2 standard library:
    https://docs.python.org/2/library/pickle.html

  - pickle in python 3 standard library:
    https://docs.python.org/3/library/pickle.html

- Development Status :: 4 - Beta
- Limitations: The parser cannot load some primitive data such like '' (empty
  string), ' ' (white space) and [] (empty list) as these are because of the
  implementation of :func:`anyconfig.backend.base.load_with_fn`.
- Special options: All options of pickle.{load{s,},dump{s,}} should work.

Changelog:

.. versionchanged:: 0.9.7

   - Add support of loading primitives other than mapping objects.

.. versionadded:: 0.8.3
é    Né   )Úbase)Úfix_importsÚencodingÚerrorsÚprotocolr   c                   @   s\   e Zd ZdZdZdZddgZeZe	Z
dZe ej¡Ze ej¡Ze ej¡Ze ej¡ZdS )ÚParserzParser for Pickle files.ÚpickleZpklTN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z_cidÚ_typeZ_extensionsÚ	LOAD_OPTSZ
_load_optsÚ	DUMP_OPTSZ
_dump_optsZ_allow_primitivesr   Z	to_methodr	   ÚloadsZ_load_from_string_fnÚloadZ_load_from_stream_fnÚdumpsZ_dump_to_string_fnÚdumpZ_dump_to_stream_fn© r   r   ú[/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/anyconfig/backend/pickle.pyr   '   s   r   )
r   r	   Ú r   r   r   ZStringStreamFnParserZBinaryLoaderMixinZBinaryDumperMixinr   r   r   r   r   Ú<module>   s   ÿ