HEX
Server: LiteSpeed
System: Linux shams.tasjeel.ae 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: infowars (1469)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //lib64/python3.9/site-packages/ldap/__pycache__/cidict.cpython-39.opt-1.pyc
a

�.d�@sPdZddlZddlmZddlmZGdd�de�Zdd�Zd	d
�Zdd�Z	dS)
z�
This is a convenience wrapper for dictionaries
returned from LDAP servers containing attribute
names of variable case.

See https://www.python-ldap.org/ for details.
�N)�MutableMapping)�__version__c@sveZdZdZdZddd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
e
Zdd�Zedd��ZdS)�cidictz:
    Case-insensitive but case-respecting dictionary.
    )�_keys�_dataNcCsi|_i|_|r|�|�dS�N)rr�update)�self�default�r�1/usr/lib64/python3.9/site-packages/ldap/cidict.py�__init__szcidict.__init__cCs|j|��Sr)r�lower�r	�keyrrr�__getitem__szcidict.__getitem__cCs |��}||j|<||j|<dSr�rrr)r	r�value�	lower_keyrrr�__setitem__s
zcidict.__setitem__cCs|��}|j|=|j|=dSrr)r	rrrrr�__delitem__$szcidict.__delitem__cCst|j���Sr)�iterr�values�r	rrr�__iter__)szcidict.__iter__cCs
t|j�Sr)�lenrrrrr�__len__,szcidict.__len__cCs|��|jvSr)rrrrrr�__contains__1szcidict.__contains__cCs|j��|j��dSr)r�clearrrrrrr4s
zcidict.clearcCs*|j�|j�}|j��|_|j��|_|Sr)�	__class__�__new__r�copyr)r	�instrrrr!8szcidict.copycCs||vS)z"Compatibility with python-ldap 2.xrrrrr�has_keyBszcidict.has_keycCstjdtdd�|jS)z>Compatibility with older IterableUserDict-based implementationzOldap.cidict.cidict.data is an internal attribute; it may be removed at any time���category�
stacklevel)�warnings�warn�DeprecationWarningrrrrr�dataFs�zcidict.data)N)�__name__�
__module__�__qualname__�__doc__�	__slots__r
rrrrrrrr!�__copy__r#�propertyr+rrrrrs
rcs>tjdtdd�t��|D]}|�|<q�fdd�|D�}|S)z{
  Return list of all items in a which are not in b (a - b).
  a,b are supposed to be lists of case-insensitive strings.
  �;strlist functions are deprecated and will be removed in 3.5r$r%csg|]}|�vr|�qSrr��.0�elt��temprr�
<listcomp>_s�z!strlist_minus.<locals>.<listcomp>�r(r)r*r��a�br6�resultrr7r�
strlist_minusRs�

�r?cs>tjdtdd�t��|D]}|�|<q�fdd�|D�}|S)zG
  Return intersection of two lists of case-insensitive strings a,b.
  r3r$r%csg|]}|�vr�|�qSrrr4r7rrr9ss�z(strlist_intersection.<locals>.<listcomp>r:r;rr7r�strlist_intersectiongs�

�r@cCsBtjdtdd�t�}|D]}|||<q|D]}|||<q,|��S)z@
  Return union of two lists of case-insensitive strings a,b.
  r3r$r%)r(r)r*rr)r<r=r8r6rrr�
strlist_union{s�

rA)
r/r(�collections.abcrZldaprrr?r@rArrrr�<module>sD