o
    .j                     @   sD   zd dl mZ W n ey   d dlmZ Y nw G dd deZdS )    )AuthBasec                   @   sJ   e Zd ZdeddfddZdedefddZdedefd	d
Zdd Z	dS )HTTPBearerAuthpasswordreturnNc                 C   s
   || _ d S N)r   )selfr    r   D/home/thesage/.local/lib/python3.10/site-packages/caldav/requests.py__init__      
zHTTPBearerAuth.__init__otherc                 C   s   | j t|dd kS )Nr   )r   getattrr   r   r   r   r	   __eq__   s   zHTTPBearerAuth.__eq__c                 C   s
   | |k S r   r   r   r   r   r	   __ne__   r   zHTTPBearerAuth.__ne__c                 C   s   d| j  |jd< |S )NzBearer Authorization)r   headers)r   rr   r   r	   __call__   s   zHTTPBearerAuth.__call__)
__name__
__module____qualname__strr
   objectboolr   r   r   r   r   r   r	   r      s
    r   N)niquests.authr   ImportErrorrequests.authr   r   r   r   r	   <module>   s    