o
    (]^¬  ã                   @   sJ   d dl mZ ddlmZ dZdZdZdedefd	d
„ZG dd„ deƒZ	dS )é    )ÚSelfDescribingé   )ÚBaseDescriptionzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtÚselfdescribingÚreturnc                 C   s   t tƒ  | ¡ƒS )zÛReturns the description of a
    :py:class:`~hamcrest.core.selfdescribing.SelfDescribing` object as a
    string.

    :param selfdescribing: The object to be described.
    :returns: The description of the object.
    )ÚstrÚStringDescriptionÚappend_description_of)r   © r
   úB/usr/lib/python3/dist-packages/hamcrest/core/string_description.pyÚtostring
   s   r   c                   @   s:   e Zd ZdZddd„Zdefdd„Zdeddfd	d
„ZdS )r   zZA :py:class:`~hamcrest.core.description.Description` that is stored as a
    string.

    r   Nc                 C   s
   d| _ d S )NÚ ©Úout©Úselfr
   r
   r   Ú__init__   s   
zStringDescription.__init__c                 C   s   | j S )zReturns the description.r   r   r
   r
   r   Ú__str__   s   zStringDescription.__str__Ústringc                 C   s   |  j t|ƒ7  _ d S )N)r   r   )r   r   r
   r
   r   Úappend"   s   zStringDescription.append)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r
   r
   r
   r   r      s
    
r   N)
Úhamcrest.core.selfdescribingr   Úbase_descriptionr   Ú
__author__Ú__copyright__Ú__license__r   r   r   r
   r
   r
   r   Ú<module>   s    