AlkantarClanX12
Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/ |
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/shelve.cpython-310.opt-2.pyc |
o 6��fp! � @ s� d dl mZmZmZ d dlmZ d dlZg d�ZG dd� dej j �ZG dd� dej j �ZG d d � d e�Z G dd� de�Zddd�ZdS )� )�DEFAULT_PROTOCOL�Pickler� Unpickler)�BytesION)�Shelf� BsdDbShelf�DbfilenameShelf�openc @ s6 e Zd Z dd� Ze Z Z Z Z ZZ dd� Z dS )�_ClosedDictc G s t d��)Nz!invalid operation on closed shelf)� ValueError)�self�args� r �-/opt/alt/python310/lib64/python3.10/shelve.py�closedE s z_ClosedDict.closedc C s dS )Nz<Closed Dictionary>r �r r r r �__repr__I � z_ClosedDict.__repr__N)�__name__� __module__�__qualname__r �__iter__�__len__�__getitem__�__setitem__�__delitem__�keysr r r r r r B s r c @ s~ e Zd Z ddd�Zdd� Zdd � Zd d� Zddd �Zdd� Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� ZdS ) r NF�utf-8c C s. || _ |d u r t}|| _|| _i | _|| _d S �N)�dictr � _protocol� writeback�cache�keyencoding�r r �protocolr! r# r r r �__init__T s zShelf.__init__c c s$ � | j �� D ] }|�| j�V qd S r )r r �decoder# )r �kr r r r ^ s ��zShelf.__iter__c C s t | j�S r )�lenr r r r r r b s z Shelf.__len__c C s |� | j�| jv S r ��encoder# r �r �keyr r r �__contains__e s zShelf.__contains__c C s |� | j�| jv r | | S |S r r* )r r- �defaultr r r �geth s z Shelf.getc C s^ z| j | }W |S ty. t| j|�| j� �}t|��� }| jr+|| j |<