HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/docx/opc/__pycache__/shared.cpython-310.pyc
o

$we��@s2dZGdd�de�Zdedefdd�Zdd�Zd	S)
zObjects shared by opc modules.cs8eZdZdZ�fdd�Z�fdd�Z�fdd�Z�ZS)�CaseInsensitiveDictaLMapping type that behaves like dict except that it matches without respect to the
    case of the key.

    E.g. cid['A'] == cid['a']. Note this is not general-purpose, just complete enough to
    satisfy opc package needs. It assumes str keys, and that it is created empty; keys
    passed in constructor are not accounted for
    c�tt|��|���S�N)�superr�__contains__�lower��self�key��	__class__��H/home/arjun/projects/env/lib/python3.10/site-packages/docx/opc/shared.pyr
�z CaseInsensitiveDict.__contains__crr)rr�__getitem__rrr
rr
rrzCaseInsensitiveDict.__getitem__cstt|��|��|�Sr)rr�__setitem__r)rr	�valuer
rr
rszCaseInsensitiveDict.__setitem__)�__name__�
__module__�__qualname__�__doc__rrr�
__classcell__rrr
r
rs
r�cls�method_namecCs
t||�S)z,Return method of `cls` having `method_name`.)�getattr)rrrrr
�
cls_method_fns
rcs*d�j��j}��fdd�}t||d�S)z�@lazyprop decorator.

    Decorated method will be called only on first access to calculate a cached property
    value. After that, the cached value is returned.
    z_%scs8zt|��WSty�|�}t|�|�|YSwr)r�AttributeError�setattr)�objr��cache_attr_name�frr
�get_prop_value%s�z$lazyproperty.<locals>.get_prop_value)�doc)rr�property)r �	docstringr!rrr
�lazypropertys
r%N)r�dictr�type�strrr%rrrr
�<module>s