ó
O'—^c           @   s)   i  Z  d  e f d „  ƒ  YZ d „  Z d S(   t   ModeDescriptorc           B   s    e  Z d  Z d „  Z d „  Z RS(   s   Wrapper for mode strings.c         C   s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   t   modet   bandst   basemodet   basetype(   t   selfR   R   R   R   (    (    s/   /tmp/pip-unpacked-wheel-ivxKtu/PIL/ImageMode.pyt   __init__   s    			c         C   s   |  j  S(   N(   R   (   R   (    (    s/   /tmp/pip-unpacked-wheel-ivxKtu/PIL/ImageMode.pyt   __str__   s    (   t   __name__t
   __module__t   __doc__R   R   (    (    (    s/   /tmp/pip-unpacked-wheel-ivxKtu/PIL/ImageMode.pyR       s   	c         C   s  t  s
d d l m } x? | j j ƒ  D]. \ } \ } } } t | | | | ƒ t  | <q& Wt d d d d	 ƒ t  d <t d
 d d	 d	 ƒ t  d
 <t d d d	 d	 ƒ t  d <t d d d d	 ƒ t  d <t d d d	 d	 ƒ t  d <t d d d	 d	 ƒ t  d <t d d d	 d	 ƒ t  d <n  t  |  S(   s*   Gets a mode descriptor for the given mode.iÿÿÿÿ(   t   Imaget   RGBat   Rt   Gt   Bt   at   RGBt   Lt   LAt   At   Lat   PAt   Ps   I;16t   Is   I;16Ls   I;16B(   R   R   R   R   (   R   R   (   R   R   (   R   R   (   t   _modest   PILR   t	   _MODEINFOt   itemsR    (   R   R   t   mR   R   R   (    (    s/   /tmp/pip-unpacked-wheel-ivxKtu/PIL/ImageMode.pyt   getmode!   s    %N(   R   t   objectR    R   (    (    (    s/   /tmp/pip-unpacked-wheel-ivxKtu/PIL/ImageMode.pyt   <module>   s   