ó
€Ò²Xc        
   @   s:  d  Z  d d l Z d d d d d d d	 d
 d d g
 Z e j d d k ra d d l Z e j Z n e Z d „  Z y
 e	 Z
 Wn e k
 r“ e Z
 n Xy
 e Z Wn e k
 r· e Z n Xd „  Z d „  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 Xy
 e Z Wn e k
 rbe Z n Xe j d k r{d Z n e j d k r“d Z n d Z d „  Z  y e d „  Z! d „  Z" Wn# e k
 rád „  Z! d „  Z" n Xy
 e# Z$ Wn e k
 rd „  Z$ n Xy d d l% j& Z' Wn e( k
 r5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_t   as_bytest
   as_unicodet	   file_typei    i   c           C   s   t  j ƒ  d S(   Ni   (   t   syst   exc_info(    (    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\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_sdl2\compat.pyt   get_BytesIO   s
    c          C   s<   y d d l  m }  Wn! t k
 r7 d d l m }  n X|  S(   Niÿÿÿÿ(   R   (   R   R   R   R   (   R   (    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyt   get_StringIO$   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_sdl2\compat.pyR   +   s    t   win32t   replacet   surrogateescapet   strictc         C   s   |  j  t j ƒ  t ƒ S(   N(   t   encodeR
   t   getfilesystemencodingt   filesystem_errors(   t   u(    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyt   filesystem_encodeL   s    c         C   s   |  S(   s*    '<binary literal>' => '<binary literal>' (    (   t   string(    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyR   Y   s    c         C   s   |  j  d d ƒ S(   s.    r'<Unicode literal>' => u'<Unicode literal>' t   unicode_escapeR   (   t   decode(   t   rstring(    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyR   ]   s    c         C   s   |  j  d d ƒ S(   s+    '<binary literal>' => b'<binary literal>' s   latin-1R   (   R   (   R   (    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyR   a   s    c         C   s   |  j  d d ƒ j d d ƒ S(   s-    r'<Unicode literal>' => '<Unicode literal>' t   asciiR   R    t   stict(   R   R!   (   R"   (    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyR   e   s    c         G   s7   y |  j  ƒ  SWn" t k
 r2 | r, | d S‚  n Xd  S(   Ni    (   t   nextt   StopIteration(   t   it   args(    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyt   next_m   s    (   i   i    i    (*   t   __doc__R
   t   __all__t   version_infoR   t   FileIOR	   t   fileR    t   longR   t	   NameErrort   intt   xrangeR   t   rangeR   R   R   t   unichrR   t   chrt   unicodeR   t   strt   bytest   bytes_t	   raw_inputR   t   inputt   platformR   R   R   R   R%   R)   t   itertools.imapt   imapt   imap_R   t   map(    (    (    s?   c:\mingw\msys\1.0\newbuild\install\python\pygame_sdl2\compat.pyt   <module>   sr   		



			







					
	