ó
ì[Jc           @   s   d  Z  d d l Z d d d d d d d	 g Z d
 „  Z y
 e Z Wn e k
 rY e Z n Xy
 e Z	 Wn e k
 r} e
 Z	 n Xd „  Z d „  Z y
 e Z Wn e k
 r³ e Z n Xy
 e Z Wn e k
 r× e Z n Xy
 e Z Wn e k
 rû e Z n Xd S(   s"   Python 2.x/3.x compatibility toolsiÿÿÿÿNt   geterrort   long_t   xrange_t   ord_t   unichr_t   unicode_t
   raw_input_c           C   s   t  j ƒ  d S(   Ni   (   t   syst   exc_info(    (    (    s:   c:\mingw\msys\1.0\newbuild\install\python\pygame\compat.pyR       s    c          C   s<   y d d l  m }  Wn! t k
 r7 d d l m }  n X|  S(   Niÿÿÿÿ(   t   StringIO(   t   BytesIO(   t	   cStringIOR	   t   ImportErrort   ioR
   (   R
   (    (    s:   c:\mingw\msys\1.0\newbuild\install\python\pygame\compat.pyt   get_BytesIO   s
    c         C   s'   y t  |  ƒ SWn t k
 r" |  SXd  S(   N(   t   ordt	   TypeError(   t   o(    (    s:   c:\mingw\msys\1.0\newbuild\install\python\pygame\compat.pyR      s    (   t   __doc__R   t   __all__R    t   longR   t	   NameErrort   intt   xrangeR   t   rangeR   R   t   unichrR   t   chrt   unicodeR   t   strt	   raw_inputR   t   input(    (    (    s:   c:\mingw\msys\1.0\newbuild\install\python\pygame\compat.pyt   <module>   s4   	



		




