;ò
ÎÑAHc           @   s·   d  k  l Z l Z l Z l Z l Z d k Z d k Z y d k Z e	 Z
 Wn e j
 o e Z
 n Xe a e Z e i ƒ  Z e Z e
 o d „  Z d „  Z n
 d „  Z d „  Z d S(   (   s   Terms   warns   errors
   flag_callss
   ask_yes_noNc         C   s   t  i | ƒ o t d ƒ ‚ n t i i |  t i | ƒ ƒ } | d j o t
 d ƒ ‚ n1 | d j o# t i i |  d ƒ t d ƒ ‚ n d S(   s0   raises the exception, performs cleanup if neededs(   Only types can be raised (not instances)i    s   invalid thread idi   s    PyThreadState_SetAsyncExc failedN(   s   inspects   isclasss   exctypes	   TypeErrors   ctypess	   pythonapis   PyThreadState_SetAsyncExcs   tids	   py_objects   ress
   ValueErrors   SystemError(   s   tids   exctypes   res(    (    sE   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/shellglobals.pys   _async_raise#   s     c         C   s3   t  o t t t ƒ n t a d Gt i i ƒ  d S(   sk  Sigint handler for threaded apps.

        This is a horrible hack to pass information about SIGINT _without_
        using exceptions, since I haven't been able to properly manage
        cross-thread exceptions in GTK/WX.  In fact, I don't think it can be
        done (or at least that's my understanding from a c.l.py thread where
        this was discussed).s/   
KeyboardInterrupt - Press <Enter> to continue.N(	   s   CODE_RUNs   _async_raises   MAIN_THREAD_IDs   KeyboardInterrupts   Trues   KBINTs   Terms   couts   flush(   s   signums   stack_frame(    (    sE   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/shellglobals.pys   sigint_handler1   s      c         C   s   d Gt  i i ƒ  t a d S(   sk  Sigint handler for threaded apps.

        This is a horrible hack to pass information about SIGINT _without_
        using exceptions, since I haven't been able to properly manage
        cross-thread exceptions in GTK/WX.  In fact, I don't think it can be
        done (or at least that's my understanding from a c.l.py thread where
        this was discussed).s/   
KeyboardInterrupt - Press <Enter> to continue.N(   s   Terms   couts   flushs   Trues   KBINT(   s   signums   stack_frame(    (    sE   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/shellglobals.pys   sigint_handlerD   s
      c         C   s.   |  i d ƒ o d |  j o t Sn t Sd S(   s•    Check if source snippet can be run in the REPL thread, as opposed to GUI mainloop
    
    (to prevent unnecessary hanging of mainloop).  
    
    s   _ip.system(s   
N(   s   srcs
   startswiths   Trues   False(   s   src(    (    sE   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/shellglobals.pys   run_in_frontendT   s     (   s   IPython.genutilss   Terms   warns   errors
   flag_callss
   ask_yes_nos   threads   inspects   ctypess   Trues
   HAS_CTYPESs   ImportErrors   Falses   KBINTs   USE_TKs	   get_idents   MAIN_THREAD_IDs   Nones   CODE_RUNs   _async_raises   sigint_handlers   run_in_frontend(   s   MAIN_THREAD_IDs   Terms   threads   sigint_handlers   inspects   USE_TKs
   flag_callss   run_in_frontends   warns   ctypess
   ask_yes_nos   errors   _async_raises
   HAS_CTYPESs   CODE_RUN(    (    sE   /u/d/b/dbachman/=/lib/python2.3/site-packages/IPython/shellglobals.pys   ?   s   %	
			