File: //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/entities.pyc
�
��4]c           @   sn   d  d l  Z d d l m Z d d l m Z e �  Z d e	 f d �  �  YZ
 e �  Z d e
 f d �  �  YZ d S(	   i����Ni   (   t   exc(   t   compatt   BasicEntityc           B   s   e  Z d  �  Z d �  Z RS(   c         K   s1   x* | j  �  D] \ } } t |  | | � q
 Wd  S(   N(   t   itemst   setattr(   t   selft   kwt   keyt   value(    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/entities.pyt   __init__   s    c      
   C   s�   t  |  � t k r t j |  � St j t  |  � � ze d |  j j d j g  t |  j	 j
 �  � D]. } | j d � s] d | t |  | � f ^ q] � f SWd  t j
 t  |  � � Xd  S(   Ns   %s(%s)s   , t   _s   %s=%r(   t   idt   _repr_stackt   objectt   __repr__t   addt	   __class__t   __name__t   joint   sortedt   __dict__t   keyst
   startswitht   getattrt   remove(   R   R   (    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/entities.pyR      s    
	7(   R   t
   __module__R	   R   (    (    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/entities.pyR      s   	t   ComparableEntityc           B   s#   e  Z d  �  Z d �  Z d �  Z RS(   c         C   s
   t  |  j � S(   N(   t   hashR   (   R   (    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/entities.pyt   __hash__+   s    c         C   s   |  j  | � S(   N(   t   __eq__(   R   t   other(    (    sN   /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/entities.pyt   __ne__.   s    c         C   s�  | |  k r t  S|  j | j k s&