
    e                     N    d dl mZ ddlmZ dZdZdZdedefd	Z G d
 de      Z	y)    )SelfDescribing   )BaseDescriptionzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtselfdescribingreturnc                 F    t        t               j                  |             S )zReturns 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   s    B/usr/lib/python3/dist-packages/hamcrest/core/string_description.pytostringr   
   s      "88HII    c                   4    e Zd ZdZddZdefdZdeddfdZy)	r
   zZA :py:class:`~hamcrest.core.description.Description` that is stored as a
    string.

    r   Nc                     d| _         y )N outselfs    r   __init__zStringDescription.__init__   s	    r   c                     | j                   S )zReturns the description.r   r   s    r   __str__zStringDescription.__str__   s    xxr   stringc                 @    | xj                   t        |      z  c_         y )N)r   r	   )r   r   s     r   appendzStringDescription.append"   s    CKr   )r   N)__name__
__module____qualname____doc__r   r	   r   r    r   r   r
   r
      s+    
  S  T  r   r
   N)
hamcrest.core.selfdescribingr   base_descriptionr   
__author____copyright____license__r	   r   r
   r    r   r   <module>r&      s<    7 -
-$J^ J J   r   