B
    ÔùÓ`  ã               @   sf   d Z yddlZW n ek
r,   ddlZY nX ddlmZ dddgZddgZG d	d
„ d
ejej	ƒZ
dS )aè  Pickle backend:

- 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Úprotocolc               @   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   ú</tmp/pip-unpacked-wheel-bpftjxoo/anyconfig/backend/pickle.pyr   *   s   r   )r   ÚcPickler	   ÚImportErrorÚ r   r   r   ZStringStreamFnParserZBinaryFilesMixinr   r   r   r   r   Ú<module>   s   
