Sha256: 6b3d135e89e20b98ef7df2576c197a5a72c3af30fc74cc79bfb9ac2979849572

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

o

Sûb:ã@s^dZddlmZmZdededdfdd„Zd	ed
edefdd„Zdedeeeffd
d„ZdS)zvSetstate and getstate functions for objects with __slots__, allowing
    compatibility with default pickling protocol
é)ÚAnyÚMappingÚselfÚstateÚreturnNcCs"| ¡D]
\}}t|||ƒqdS©N)ÚitemsÚsetattr)rrZslotÚvalue©rú4/tmp/pip-target-onvjaxws/lib/python/bson/_helpers.pyÚ_setstate_slotssÿr
ÚnameÚprefixcCs&| d¡r
d|}||Sd}||S)NÚ__Ú_Ú)Ú
startswith)rrrrrÚ_mangle_names

ÿrcCs@|jj}tƒ}|jD]}t||ƒ}t||ƒrt||ƒ||<q
|Sr)Ú	__class__Ú__name__ÚdictÚ	__slots__rÚhasattrÚgetattr)rrÚretrZmangled_namerrrÚ_getstate_slots"s


€r)Ú__doc__Útypingrrr
ÚstrrrrrrrÚ<module>s


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensu-plugins-mongodb-mrtrotl-1.4.0 lib/bson/__pycache__/_helpers.cpython-310.pyc