File: //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/shelve.cpython-311.opt-2.pyc
�
    !A?hp!  �                   ��   � 	 d dl mZmZmZ d dlmZ d dlZg d�Z G d� dej	        j
        �  �        Z G d� dej	        j
        �  �        Z G d	� d
e�  �        Z
 G d� de�  �        Zdd�ZdS )�    )�DEFAULT_PROTOCOL�Pickler�	Unpickler)�BytesION)�Shelf�
BsdDbShelf�DbfilenameShelf�openc                   �4   � e Zd Z	 d� ZexZxZxZxZxZZ	d� Z
dS )�_ClosedDictc                 �    � t          d�  �        �)Nz!invalid operation on closed shelf)�
ValueError)�self�argss     �-/opt/alt/python311/lib64/python3.11/shelve.py�closedz_ClosedDict.closedE   s   � ��<�=�=�=�    c                 �   � dS )Nz<Closed Dictionary>� �r   s    r   �__repr__z_ClosedDict.__repr__I   s   � �$�$r   N)�__name__�
__module__�__qualname__r   �__iter__�__len__�__getitem__�__setitem__�__delitem__�keysr   r   r   r   r   r   B   sS   � � � � � �D�>� >� >�JP�P�H�P�w�P��P�{�P�[�4�%� %� %� %� %r   r   c                   �f   � e Zd Z	 	 	 dd�Zd� Zd� Zd� Zdd�Zd	� Zd
� Z	d� Z
d� Zd
� Zd� Z
d� Zd� ZdS )r   NF�utf-8c                 �^   � || _         |�t          }|| _        || _        i | _        || _        d S �N)�dictr   �	_protocol�	writeback�cache�keyencoding�r   r%   �protocolr'