ó
BwLc           @   s=  d  Z  d Z g  Z d d l Z d d l Z y e e f Wn- e k
 rg d \ Z Z e d d g 7Z n Xy e Wn1 e k
 r£ d d d	 „  ƒ  YZ e d g 7Z n Xy e	 d
 e
 e f ƒ Wn{ e k
 r8e d g 7Z i e d ƒ e 6e g  ƒ e 6e d ƒ e 6e d ƒ e 6e d ƒ e
 6e d ƒ e 6Z d „  Z	 n Xd S(   s€   Compatibility code for old versions of Python

Currently, this just defines:
    - True and False
    - object
    - isinstance
s   $Id$iÿÿÿÿNi   i    t   Truet   Falset   objectc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s=   /usr/lib/python2.7/dist-packages/Crypto/Util/python_compat.pyR   4   s    i   t
   isinstancet    u    l    c         C   so   t  j | t d ƒ ƒ s4 t  j |  t j | | ƒ ƒ Sx0 | D]( } t  j |  t j | | ƒ ƒ r; t Sq; Wt Sd  S(   N(    (   t   __builtin__R   t   typet   _builtin_type_mapt   getR    R   (   t   objt   tt   typ(    (    s=   /usr/lib/python2.7/dist-packages/Crypto/Util/python_compat.pyR   I   s    (   i   i    (    (    (   t   __doc__t   __revision__t   __all__t   sysR   R    R   t	   NameErrorR   R   t   intt   longt	   TypeErrorR   t   tuplet   listt   strt   unicodeR	   (    (    (    s=   /usr/lib/python2.7/dist-packages/Crypto/Util/python_compat.pyt   <module>   s4   