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�retrZmangled_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 |