AlkantarClanX12
Current Path : /opt/alt/python312/lib64/python3.12/dbm/__pycache__/ |
Current File : //opt/alt/python312/lib64/python3.12/dbm/__pycache__/dumb.cpython-312.opt-2.pyc |
� �Q�fJ- � �| � d dl Zd dlZd dlZd dlZddgZdZ e Z G d� dej j � Zdd�Zy) � N�error�openi c � � e Zd ZeZeZdd�Zd� Zd� Zd� ZeZ d� Z d� Zd� Zd� Z d � Zd � Zd� Zd� Zd � Zd� Zd� ZeZd� Zd� ZeZd� Zd� Zd� Zy)� _Databasec �� � | j j |� }|| _ |dk( | _ |dz | _ |dz | _ |dz | _ d | _ | j |� | j |� y )N�rs .dirs .dats .bak) �_os�fsencode�_mode� _readonly�_dirfile�_datfile�_bakfile�_index�_create�_update)�self�filebasename�mode�flags �//opt/alt/python312/lib64/python3.12/dbm/dumb.py�__init__z_Database.__init__0 ss � ��x�x�(�(��6���� ��#�+��� %�w�.�� � %�w�.�� �$�w�.�� � ��� ���T�����T�� c �� � |dk( r>| j | j | j fD ] } t j |� � t j | j dd�� }|j � y # t $ r Y �Zw xY w# t $ r[ |dvr� t j | j dd�� 5 }| j | j � d d d � Y y # 1 sw Y Y y xY ww xY w)N�nr �Latin-1��encoding��cr �w) r r r r �remove�OSError�_ior �close�_chmod)r r �filename�fs r r z_Database._createJ s� � ��3�;�!�]�]�D�M�M�4�=�=�I����J�J�x�(� J� ��������i�@�A� �G�G�I�� � ���� � +��:�%�����$�-�-��y�A�Q����D�M�M�*� B�A�A�� +�s; �A8�"B �8 B�B�0C+�7C�C+�C' �"C+�'C+c �j � d| _ i | _ t j | j dd�� }|5 |D ]J }|j � }t j |� \ }}|j d� }|| j |<