;ò
�ü?c           @   s–  d  k  Z  d  k Z  d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k Z d  k	 Z	 d  k
 Z
 d  k Z d  k Z d k l Z d k Td  k Z d k l Z l Z d k l Z d k l Z d k l Z d k l Z d k l Z d  k Z d  k Z d  k Z d  k Z e i e i d	 Z d
 Z  y d k! l" Z" Wn e# j
 o d Z" n Xy d  k$ Z$ Wn e# j
 o n Xd „  Z% e% e$ _& e i' d „ Z( e( e _' d e f d „  ƒ  YZ) d e f d „  ƒ  YZ* d e f d „  ƒ  YZ+ d e f d „  ƒ  YZ, d e i- f d „  ƒ  YZ. d e f d „  ƒ  YZ/ d e f d „  ƒ  YZ0 d f  d „  ƒ  YZ1 d Z2 d  „  Z3 d! „  Z4 e5 d" j o e i6 d" e i6 d <e3 ƒ  n d  S(#   N(   s   InteractiveInterpreter(   s   *(   s   EditorWindows   fixwordbreaks(   s   FileList(   s   ColorDelegator(   s   UndoDelegator(   s   OutputWindow(   s   idleConfs   _s	   127.0.0.1(   s   SIGTERMi   c         C   s,   t  i } | i t i |  | | | ƒ ƒ d  S(   N(
   s   syss
   __stderr__s   files   writes   warningss   formatwarnings   messages   categorys   filenames   lineno(   s   messages   categorys   filenames   linenos   file(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   idle_showwarning0   s    	c         C   si   t  i } h  } x? | i ƒ  D]1 } | d  | d d j o | | | | <q q W|  ƒ  | i | ƒ d S(   s   Extend linecache.checkcache to preserve the <pyshell#...> entries

    Rather than repeating the linecache code, patch it to save the pyshell#
    entries, call the original linecache.checkcache(), and then restore the
    saved entries.  Assigning the orig_checkcache keyword arg freezes its value
    at definition time to the (original) method linecache.checkcache(), i.e.
    makes orig_checkcache lexical.

    i   iÿÿÿÿs   <>N(   s	   linecaches   caches   saves   keyss   filenames   orig_checkcaches   update(   s   orig_checkcaches   saves   caches   filename(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   extended_linecache_checkcache5   s    	 	 s   PyShellEditorWindowc           B   s†   t  Z d  Z d „  Z d d f d d f g Z d „  Z e d „ Z e d „ Z d	 „  Z	 d
 „  Z
 d „  Z d „  Z d „  Z d „  Z RS(   s0   Regular text edit window when a shell is presentc         G   sÀ   g  |  _ t i |  | Œ |  i i d |  i ƒ |  i i d |  i ƒ |  i i d |  i	 i
 ƒ t i i t i ƒ  d ƒ |  _ |  i i o |  i ƒ  n |  i i |  d „ } |  i i | ƒ d  S(   Ns   <<set-breakpoint-here>>s   <<clear-breakpoint-here>>s   <<open-python-shell>>s   breakpoints.lstc         C   s   | i ƒ  |  ƒ  d  S(   N(   s   selfs   restore_file_breakss   old_hook(   s   old_hooks   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   filename_changed_hookY   s    
(   s   selfs   breakpointss   EditorWindows   __init__s   argss   texts   binds   set_breakpoint_heres   clear_breakpoint_heres   flists
   open_shells   oss   paths   joins   idleConfs   GetUserCfgDirs   breakpointPaths   ios   filenames   restore_file_breakss   filename_change_hooks   filename_changed_hooks   set_filename_change_hook(   s   selfs   argss   filename_changed_hook(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   __init__N   s    	 s   Set Breakpoints   <<set-breakpoint-here>>s   Clear Breakpoints   <<clear-breakpoint-here>>c         C   s¤   |  i } |  i i } | i d d | d | d ƒ y |  i i | ƒ } Wn# t	 j
 o |  i i
 | ƒ n Xy& |  i i i i } | i | | ƒ Wn n Xd  S(   Ns   BREAKs   %d.0i   (   s   selfs   texts   ios   filenames   tag_adds   linenos   breakpointss   indexs   is
   ValueErrors   appends   flists   pyshells   interps   debuggers   debugs   set_breakpoint_here(   s   selfs   linenos   is   texts   filenames   debug(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   set_breakpointb   s    	c         C   s[   |  i } |  i i } | o | i ƒ  d  Sn t t | i d ƒ ƒ ƒ } |  i	 | ƒ d  S(   Ns   insert(
   s   selfs   texts   ios   filenames   bells   ints   floats   indexs   linenos   set_breakpoint(   s   selfs   events   texts   filenames   lineno(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   set_breakpoint_herep   s    	
c         C   s¯   |  i } |  i i } | o | i ƒ  d  Sn t t | i d ƒ ƒ ƒ } y |  i	 i
 | ƒ Wn n X| i d d d ƒ y& |  i i i i } | i | | ƒ Wn n Xd  S(   Ns   inserts   BREAKs   insert linestarts   insert lineend +1char(   s   selfs   texts   ios   filenames   bells   ints   floats   indexs   linenos   breakpointss   removes
   tag_removes   flists   pyshells   interps   debuggers   debugs   clear_breakpoint_here(   s   selfs   events   texts   filenames   linenos   debug(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   clear_breakpoint_herey   s"    	
c         C   sŠ   |  i o| |  i } |  i i } | o | i ƒ  d  Sn g  |  _ | i d d t ƒ y# |  i i	 i
 i } | i | ƒ Wq† q† Xn d  S(   Ns   BREAKs   1.0(   s   selfs   breakpointss   texts   ios   filenames   bells
   tag_removes   ENDs   flists   pyshells   interps   debuggers   debugs   clear_file_breaks(   s   selfs   debugs   texts   filename(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   clear_file_breaksŒ   s    
	
	c         C   sá   |  i } |  i i } y t |  i d ƒ i ƒ  } Wn t	 j
 o g  } n Xt |  i d ƒ } x4 | D], } | i | d ƒ o | i | ƒ qf qf W|  i ƒ  |  i } | o# | i | d t | ƒ d ƒ n | i ƒ  d S(   s#   Save breakpoints when file is saveds   rs   ws   =s   
N(   s   selfs   breakpointss   breakss   ios   filenames   opens   breakpointPaths	   readliness   liness   IOErrors   new_files   lines
   startswiths   writes   update_breakpointss   strs   close(   s   selfs   new_files   liness   filenames   lines   breaks(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   store_file_breaks›   s"     	 
	#c         C   sÅ   |  i i ƒ  |  i i } | t j o d  Sn t i i |  i	 ƒ o} t
 |  i	 d ƒ i ƒ  } xb | D]V } | i | d ƒ o< t | t | ƒ d ƒ } x | D] } |  i | ƒ qž Wqc qc Wn d  S(   Ns   rs   =i   (   s   selfs   texts   updates   ios   filenames   Nones   oss   paths   isfiles   breakpointPaths   opens	   readliness   liness   lines
   startswiths   evals   lens   breakpoint_linenumberss   breakpoint_linenumbers   set_breakpoint(   s   selfs   breakpoint_linenumbers   liness   filenames   lines   breakpoint_linenumbers(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   restore_file_breaksÂ   s      c         C   s4   |  i } | i d ƒ } |  i | ƒ } | |  _ d S(   s3   Retrieves all the breakpoints in the current windows   BREAKN(   s   selfs   texts
   tag_rangess   rangess   ranges_to_linenumberss   linenumber_lists   breakpoints(   s   selfs   rangess   texts   linenumber_list(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   update_breakpointsÏ   s
     	c         C   s�   g  } x| t d t | ƒ d ƒ D]b } t t | | ƒ ƒ } t t | | d ƒ ƒ } x) | | j  o | i	 | ƒ | d 7} qX Wq W| Sd  S(   Ni    i   i   (
   s   liness   ranges   lens   rangess   indexs   ints   floats   linenos   ends   append(   s   selfs   rangess   indexs   ends   liness   lineno(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   ranges_to_linenumbersÖ   s      c         C   s   |  i ƒ  t i |  ƒ d S(   s7   Extend base method - clear breaks when module is closedN(   s   selfs   clear_file_breakss   EditorWindows   _close(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   _closeç   s     
(   s   __name__s
   __module__s   __doc__s   __init__s   rmenu_specss   set_breakpoints   Nones   set_breakpoint_heres   clear_breakpoint_heres   clear_file_breakss   store_file_breakss   restore_file_breakss   update_breakpointss   ranges_to_linenumberss   _close(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   PyShellEditorWindowK   s    					'			s   PyShellFileListc           B   s&   t  Z d  Z e Z e Z e d „ Z RS(   s4   Extend base class: file list when a shell is presentc         C   sB   |  i o |  i i ƒ  n t |  ƒ |  _ |  i i ƒ  |  i Sd  S(   N(   s   selfs   pyshells   wakeups   PyShells   begin(   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys
   open_shellô   s
    
(   s   __name__s
   __module__s   __doc__s   PyShellEditorWindows   EditorWindows   Nones   pyshells
   open_shell(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   PyShellFileListí   s    s   ModifiedColorDelegatorc           B   s)   t  Z d  Z d „  Z d „  Z d „  Z RS(   s8   Extend base class: colorizer for the shell window itselfc         C   s   t  i |  ƒ |  i ƒ  d  S(   N(   s   ColorDelegators   __init__s   selfs   LoadTagDefs(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   __init__   s    c         C   s7   |  i d d d ƒ |  i d d d ƒ t i |  ƒ d  S(   Ns   TODOs   1.0s   iomarks   SYNC(   s   selfs
   tag_removes   tag_adds   ColorDelegators   recolorize_main(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   recolorize_main  s    c         C   s¥   t  i |  ƒ t i d d d ƒ } |  i i h  d h  d t <d t <<d t i	 | d ƒ <d t i	 | d ƒ <d	 t i	 | d	 ƒ <t t i	 | d
 ƒ <ƒ d  S(   Ns   mains   Themes   names   stdins
   backgrounds
   foregrounds   stdouts   stderrs   consoles   normal(
   s   ColorDelegators   LoadTagDefss   selfs   idleConfs	   GetOptions   themes   tagdefss   updates   Nones   GetHighlight(   s   selfs   theme(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   LoadTagDefs	  s    (   s   __name__s
   __module__s   __doc__s   __init__s   recolorize_mains   LoadTagDefs(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   ModifiedColorDelegatorý   s    		s   ModifiedUndoDelegatorc           B   s&   t  Z d  Z e d „ Z e d „ Z RS(   s;   Extend base class: forbid insert/delete before the I/O markc         C   sb   y2 |  i i | d d ƒ o |  i i ƒ  d  Sn Wn t j
 o n Xt i |  | | | ƒ d  S(   Ns   <s   iomark(
   s   selfs   delegates   compares   indexs   bells   TclErrors   UndoDelegators   inserts   charss   tags(   s   selfs   indexs   charss   tags(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   insert  s    c         C   s_   y2 |  i i | d d ƒ o |  i i ƒ  d  Sn Wn t j
 o n Xt i |  | | ƒ d  S(   Ns   <s   iomark(	   s   selfs   delegates   compares   index1s   bells   TclErrors   UndoDelegators   deletes   index2(   s   selfs   index1s   index2(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   delete   s    (   s   __name__s
   __module__s   __doc__s   Nones   inserts   delete(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   ModifiedUndoDelegator  s    	s   MyRPCClientc           B   s   t  Z d „  Z RS(   Nc         C   s
   t  ‚ d S(   s0   Override the base class - just re-raise EOFErrorN(   s   EOFError(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys
   handle_EOF,  s     (   s   __name__s
   __module__s
   handle_EOF(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   MyRPCClient*  s   s   ModifiedInterpreterc           B   s.  t  Z d „  Z d Z e Z e Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z d	 „  Z d
 „  Z d „  Z e Z d „  Z e Z d „  Z d „  Z d „  Z d „  Z d Z d „  Z e d „ Z d „  Z d „  Z d „  Z e d „ Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d „  Z# d „  Z$ RS(   Nc         C   sQ   | |  _  t i d i } t i |  d | ƒt |  _	 t
 |  _ |  i ƒ  |  _ d  S(   Ns   __main__s   locals(   s	   tkconsoles   selfs   syss   moduless   __dict__s   localss   InteractiveInterpreters   __init__s   Nones   save_warnings_filterss   Falses
   restartings   build_subprocess_arglists   subprocess_arglist(   s   selfs	   tkconsoles   locals(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   __init__3  s    			i�"  c         C   s+   |  i } t i t i t i | ƒ |  _ d  S(   N(	   s   selfs   subprocess_arglists   argss   oss   spawnvs   P_NOWAITs   syss
   executables   rpcpid(   s   selfs   args(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   spawn_subprocess?  s    	c         C   sÝ   g  i  } t i D] } | d | ƒ q ~ } t i d d d d t d d ƒ} t
 d j o d	 | d
 } n d | d
 } t i d j o d t i j o d t i } n
 t i } | g | d | t |  i ƒ g Sd  S(   Ns   -Ws   mains   Generals   delete-exitfuncs   defaults   types   bools   idlelib.PyShells#   __import__('idlelib.run').run.main(s   )s   __import__('run').main(s   win32s    s   "%s"s   -c(   s   appends   _[1]s   syss   warnoptionss   ss   ws   idleConfs	   GetOptions   Falses	   del_exitfs   __name__s   commands   platforms
   executables   decorated_execs   strs   selfs   port(   s   selfs   _[1]s   ss   commands   ws	   del_exitfs   decorated_exec(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   build_subprocess_arglistC  s    . 	c         C   sB  t  |  i f } xz t d ƒ D][ } t i | ƒ y t | ƒ |  _	 PWq t
 i j
 o" } t i d | d d IJq Xq Wt ƒ  t i ƒ  |  i ƒ  |  i	 i ƒ  |  i	 i d |  i ƒ |  i	 i d |  i i ƒ |  i	 i d |  i i ƒ |  i	 i d |  i i ƒ |  i	 i d	 t ƒ |  i	 i d
 |  ƒ |  i ƒ  |  i ƒ  d  S(   Ni   s   IDLE socket error: i   s   , retrying...s   stdins   stdouts   stderrs   flists	   linecaches   interp(   s	   LOCALHOSTs   selfs   ports   addrs   ranges   is   times   sleeps   MyRPCClients   rpcclts   sockets   errors   errs   syss
   __stderr__s   display_port_binding_errors   exits   spawn_subprocesss   accepts   registers	   tkconsoles   stdouts   stderrs   flists	   linecaches   transfer_paths   poll_subprocess(   s   selfs   addrs   errs   i(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   start_subprocessU  s*     "


c         C   sl  |  i o d  Sn t |  _ |  i ƒ  } | o" y t i |  i ƒ WqP qP Xn |  i i ƒ  |  i	 ƒ  |  i
 } | i } t | _ |  i ƒ  |  i i ƒ  |  i ƒ  | i i d d ƒ | o | i d ƒ | i ƒ  n t | i ƒ d d d } | i | d | ƒ | i i d d ƒ | i i d d	 ƒ | i ƒ  | o  t i |  i ƒ } | i ƒ  n t |  _ d  S(
   Ns   iomarks   end-1cs   
i   i   s   =s	    RESTART s   restarts   left(   s   selfs
   restartings   Trues   getdebuggers   debugs   RemoteDebuggers   close_subprocess_debuggers   rpcclts   closes   unix_terminates	   tkconsoles   consoles	   executings   was_executings   Falses   spawn_subprocesss   accepts   transfer_paths   texts   deletes   writes
   showprompts   ints   widths   halfbars   mark_sets   mark_gravitys   restart_subprocess_debuggers   guis   load_breakpoints(   s   selfs   consoles   halfbars   was_executings   debugs   gui(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   restart_subprocesso  s<    
	
			


c         C   s   |  i i d d f  h  ƒ d  S(   Ns   execs   interrupt_the_server(   s   selfs   rpcclts
   remotecall(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   __request_interrupt–  s    c         C   s   t  i d |  i ƒ i ƒ  d  S(   Ns   target(   s	   threadings   Threads   selfs'   _ModifiedInterpreter__request_interrupts   start(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   interrupt_subprocess™  s    c         C   s0   |  i i ƒ  |  i ƒ  t |  i _ t |  _ d  S(   N(   s   selfs   rpcclts   closes   unix_terminates   Falses	   tkconsoles	   executings   None(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   kill_subprocessœ  s    
c         C   sz   t  t d ƒ of y t i |  i t ƒ Wn t j
 o d Sqv Xy t i |  i d ƒ Wqv t j
 o d Sqv Xn d S(   s;   UNIX: make sure subprocess is terminated and collect statuss   killNi    (   s   hasattrs   oss   kills   selfs   rpcpids   SIGTERMs   OSErrors   waitpid(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   unix_terminate¢  s     	c         C   s   |  i d t i ƒ d  S(   NsÜ   if 1:
        import sys as _sys
        _sys.path = %s
        del _sys
        _msg = 'Use File/Exit or your end-of-file key to quit IDLE'
        __builtins__.quit = __builtins__.exit = _msg
        del _msg
        
(   s   selfs
   runcommands   syss   path(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   transfer_path°  s    c         C   s’  |  i } | t j o d  Sn y | i |  i d d ƒ} WnA t t t	 f j
 o, |  i
 i o d  Sn t } |  i ƒ  n X| oØ |  i
 i ƒ  t |  _ | \ } } |  i
 i } | d j o  | t j	 o | | IJqLnm | d j o% |  i
 i d ƒ o |  i ƒ  qLn; | d j o- d } t i | I| IJ| | I| IJn |  i
 i ƒ  n |  i
 i o# |  i
 i i |  i
 i |  i ƒ n d  S(   Ns   waitf0.050000000000000003s   OKs	   EXCEPTIONs   <<toggle-jit-stack-viewer>>s   ERRORs/   PyShell.ModifiedInterpreter: Subprocess ERROR:
(   s   selfs   rpcclts   clts   Nones   pollresponses
   active_seqs   responses   EOFErrors   IOErrors   KeyboardInterrupts	   tkconsoles   closings   restart_subprocesss   resetoutputs   hows   whats   consoles   getvars   remote_stack_viewers   errmsgs   syss
   __stderr__s   endexecutings   texts   afters   pollintervals   poll_subprocess(   s   selfs   whats   consoles   hows   clts   responses   errmsg(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   poll_subprocess¼  s:    		c         C   s   | |  _  d  S(   N(   s   debuggers   self(   s   selfs   debugger(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   setdebuggerá  s    c         C   s   |  i Sd  S(   N(   s   selfs   debugger(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   getdebuggerä  s    c         C   s!   |  i i i d |  i ƒ d Sd S(   s“  Initiate the remote stack viewer from a separate thread.

        This method is called from the subprocess, and by returning from this
        method we allow the subprocess to unblock.  After a bit the shell
        requests the subprocess to open the remote stack viewer which returns a
        static object looking at the last exceptiopn.  It is queried through
        the RPC mechanism.

        i,  N(   s   selfs	   tkconsoles   texts   afters   remote_stack_viewer(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   open_remote_stack_viewerç  s    	 c   	      C   sÚ   d  k  } |  i i d d d f h  ƒ } | t j o |  i i i ƒ  d  Sn | i	 |  i | ƒ } d k l } l } t |  i i ƒ } | | d d d d ƒ} | i i d	 d
 d d ƒ | | i t | ƒ } | i ƒ  d  S(   Ns   execs   stackviewers   flist(   s   ScrolledCanvass   TreeNodes   bgs   whites   highlightthicknessi    s   expandi   s   fills   both(   s   RemoteObjectBrowsers   selfs   rpcclts   remotequeues   oids   Nones	   tkconsoles   roots   bells   StubObjectTreeItems   items
   TreeWidgets   ScrolledCanvass   TreeNodes   Toplevels   tops   scs   frames   packs   canvass   nodes   expand(	   s   selfs   nodes   ScrolledCanvass   TreeNodes   oids   items   RemoteObjectBrowsers   scs   top(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   remote_stack_viewerô  s    	i    c         C   s#   |  i | ƒ } |  i | | ƒ d S(   s1   Like runsource() but assumes complete exec sourceN(   s   selfs   stuffsources   sources   filenames   execfile(   s   selfs   sources   filename(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys
   execsource  s     c         C   s³   | t j o t | d ƒ i ƒ  } n y t | | d ƒ } Wnc t t f j
 oQ |  i
 i ƒ  |  i
 i } | d IJ| d IJt i |  | ƒ |  i
 i ƒ  n X|  i | ƒ d S(   s   Execute an existing files   rs   execs    *** Error in script or command!
s"   Traceback (most recent call last):N(   s   sources   Nones   opens   filenames   reads   compiles   codes   OverflowErrors   SyntaxErrors   selfs	   tkconsoles   resetoutputs   stderrs   tkerrs   InteractiveInterpreters   showsyntaxerrors
   showprompts   runcode(   s   selfs   filenames   sources   tkerrs   code(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   execfile
  s     

c         C   sî   |  i | ƒ } d |  _ t i |  _ t i d d d t	 ƒ t
 | t i ƒ oW d k } y | i | i ƒ } Wq¥ t j
 o% |  i i ƒ  |  i d ƒ d Sq¥ Xn z t i |  | | ƒ SWd |  i t j	 o |  i t i (t |  _ n Xd S(   sB   Extend base class method: Stuff the source in the line cache firsti    s   actions   errors   categoryNs   Unsupported characters in input(   s   selfs   stuffsources   sources   filenames   mores   warningss   filterss   save_warnings_filterss   filterwarningss   SyntaxWarnings
   isinstances   typess   UnicodeTypes	   IOBindings   encodes   encodings   UnicodeErrors	   tkconsoles   resetoutputs   writes   InteractiveInterpreters	   runsources   None(   s   selfs   sources   filenames	   IOBinding(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys	   runsource  s&     		 c         C   sW   d |  i } |  i d |  _ | i d ƒ } t | ƒ d d | | f t i | <| Sd S(   s"   Stuff source in the filename caches   <pyshell#%d>i   s   
i    N(	   s   selfs   gids   filenames   sources   splits   liness   lens	   linecaches   cache(   s   selfs   sources   liness   filename(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   stuffsource/  s     #c         C   s   |  i d | ƒ d S(   s>   Prepend sys.path with file's directory if not already includeds(  if 1:
            _filename = %s
            import sys as _sys
            from os.path import dirname as _dirname
            _dir = _dirname(_filename)
            if not _dir in _sys.path:
                _sys.path.insert(0, _dir)
            del _filename, _sys, _dirname, _dir
            
N(   s   selfs
   runcommands   filename(   s   selfs   filename(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   prepend_syspath7  s     c   
      C   s  |  i i } |  i ƒ  } | oÌ | \ } } } }	 | d j o d | d } n d | d | d f } | i
 d | ƒ | i | ƒ | i | ƒ } | o
 | t j o | i
 d | d | ƒ n |  i i ƒ  |  i d t | ƒ ƒ n |  i i ƒ  t i |  | ƒ |  i i ƒ  d S(   s˜   Extend base class method: Add Colorizing

        Color the offending position instead of printing it and pointing at it
        with a caret.

        i   s   iomark + %d charss&   iomark linestart + %d lines + %d charss   ERRORs
    wordstarts   SyntaxError: %s
N(   s   selfs	   tkconsoles   texts   unpackerrors   stuffs   msgs   linenos   offsets   lines   poss   tag_adds   sees   gets   chars
   IDENTCHARSs   resetoutputs   writes   strs   InteractiveInterpreters   showsyntaxerrors   filenames
   showprompt(
   s   selfs   filenames   texts   poss   chars   stuffs   linenos   offsets   msgs   line(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   showsyntaxerrorC  s$     c   
      C   s�   t  i ƒ  \ } } }	 | t j } | oB y. | \ } \ } } } } | o
 d } n Wqj d } qj Xn | o | | | | f Sn t Sd  S(   Ni    (   s   syss   exc_infos   types   values   tbs   SyntaxErrors   oks   msgs   dummy_filenames   linenos   offsets   lines   None(
   s   selfs   oks   types   lines   values   linenos   offsets   msgs   dummy_filenames   tb(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   unpackerror_  s    c         C   sL   |  i i ƒ  |  i ƒ  t i |  ƒ |  i i d ƒ o |  i i ƒ  n d S(   s1   Extend base class method to reset output properlys   <<toggle-jit-stack-viewer>>N(   s   selfs	   tkconsoles   resetoutputs   checklinecaches   InteractiveInterpreters   showtracebacks   getvars   open_stack_viewer(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   showtracebackn  s     
c         C   sH   t  i } x8 | i ƒ  D]* } | d  | d d j o | | =q q Wd  S(   Ni   iÿÿÿÿs   <>(   s	   linecaches   caches   cs   keyss   key(   s   selfs   cs   key(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   checklinecachev  s
    	 c         C   s    t  i d d d |  i i ƒd  S(   Ns   Already executingsY   The Python Shell window is already executing a command; please wait until it is finished.s   master(   s   tkMessageBoxs	   showerrors   selfs	   tkconsoles   text(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   display_executing_dialog|  s    	c         B   s\   |  i i o |  i ƒ  d Sn |  i o  |  i i d d | f h  ƒ n | |  i Ud Sd S(   s*   Run the code without invoking the debuggeri    s   execs   runcodei   N(   s   selfs	   tkconsoles	   executings   display_executing_dialogs   rpcclts   remotequeues   codes   locals(   s   selfs   code(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys
   runcommandƒ  s     

 c         B   sS  |  i i o |  i i ƒ  n |  i ƒ  |  i e j	 o |  i e i	 (e |  _ n |  i
 } z× |  i i ƒ  yj | o |  i e j	 o% |  i i d d | f h  ƒ |  _ n* | o | i | |  i ƒ n | |  i UWnY e j
 o= e i d d d d d |  i i ƒo ‚  q1|  i ƒ  n |  i ƒ  n XWd e o |  i i ƒ  n Xd S(	   s   Override base class methods   execs   runcodes   Exit?s   Do you want to exit altogether?s   defaults   yess   masterN(   s   selfs	   tkconsoles	   executings   interps   restart_subprocesss   checklinecaches   save_warnings_filterss   Nones   warningss   filterss   debuggers   beginexecutings   rpcclts
   asyncqueues   codes
   active_seqs   runs   localss
   SystemExits   tkMessageBoxs   askyesnos   texts   showtracebacks   use_subprocesss   endexecuting(   s   selfs   codes   debugger(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   runcode�  s:     
		 c         C   s   |  i i i | ƒ d S(   s   Override base class methodN(   s   selfs	   tkconsoles   stderrs   writes   s(   s   selfs   s(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   write±  s     (%   s   __name__s
   __module__s   __init__s   ports   Nones   rpcclts   rpcpids   spawn_subprocesss   build_subprocess_arglists   start_subprocesss   restart_subprocesss'   _ModifiedInterpreter__request_interrupts   interrupt_subprocesss   kill_subprocesss   unix_terminates   transfer_paths
   active_seqs   poll_subprocesss   debuggers   setdebuggers   getdebuggers   open_remote_stack_viewers   remote_stack_viewers   gids
   execsources   execfiles	   runsources   stuffsources   prepend_syspaths   showsyntaxerrors   unpackerrors   showtracebacks   checklinecaches   display_executing_dialogs
   runcommands   runcodes   write(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   ModifiedInterpreter1  sD   					'					
	#														"s   PyShellc           B   s³  t  Z d Z e Z e Z d d f d d f d d f d d	 f d
 d f d d f g Z d k l	 Z	 e
 d „ Z e Z e Z e Z e Z e Z e
 d „ Z d „  Z e
 d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d Z d Z d „  Z  d „  Z! d  „  Z" d! „  Z# e
 d" „ Z$ d# „  Z% d$ „  Z& d% „  Z' d& „  Z( d' „  Z) d( „  Z* e
 d) „ Z+ e
 d* „ Z, e
 d+ „ Z- d, „  Z. d- „  Z/ f  d. „ Z0 RS(/   Ns   Python Shells   files   _Files   edits   _Edits   debugs   _Debugs   optionss   _Optionss   windowss   _Windowss   helps   _Help(   s   Historyc         C   s«  t  o< |  i } | d d d j o | i d d d f ƒ qC n t |  ƒ |  _ | t j o- t	 ƒ  } t | ƒ | i ƒ  t | ƒ } n t i |  | t t ƒ d  k } d | _ | _ |  i d d d d	 d
 d ƒ |  i } | i d d ƒ | i d |  i ƒ | i d |  i ƒ | i d |  i ƒ | i d |  i ƒ | i d |  i ƒ | i d |  i ƒ | i d |  i ƒ | i d |  i i ƒ | i d |  i ƒ t  o* | i d |  i  ƒ | i d |  i! ƒ n t" i# |  _$ t" i% |  _& t" i' |  _( d  k) } t* |  d | i+ ƒ |  _# t* |  d | i+ ƒ |  _% t* |  d | i+ ƒ |  _, t  o% |  i# t" _# |  i% t" _% |  t" _' n |  i- |  i ƒ |  _. d |  _/ t  o |  i i0 ƒ  n d  S(   Ni   i    s   shells   _Shells   To exit, type Ctrl-D.s   usetabsi   s   indentwidthi   s   context_use_ps1s   wraps   chars   <<newline-and-indent>>s   <<plain-newline-and-indent>>s   <<interrupt-execution>>s   <<beginning-of-line>>s   <<end-of-file>>s   <<open-stack-viewer>>s   <<toggle-debugger>>s   <<open-python-shell>>s   <<toggle-jit-stack-viewer>>s   <<view-restart>>s   <<restart-shell>>s   stdouts   stderrs   consolei2   (1   s   use_subprocesss   selfs
   menu_specss   mss   inserts   ModifiedInterpreters   interps   flists   Nones   Tks   roots   fixwordbreakss   withdraws   PyShellFileLists   OutputWindows   __init__s   __builtin__s   quits   exits   configs   texts	   configures   binds   enter_callbacks   linefeed_callbacks   cancel_callbacks   home_callbacks   eof_callbacks   open_stack_viewers   toggle_debuggers
   open_shells   toggle_jit_stack_viewers   view_restart_marks   restart_shells   syss   stdouts   save_stdouts   stderrs   save_stderrs   stdins
   save_stdins	   IOBindings
   PseudoFiles   encodings   consoles   Historys   historys   pollintervals   start_subprocess(   s   selfs   flists   texts   __builtin__s   mss   roots	   IOBinding(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   __init__Ê  sV    		

				c         C   sg   |  i o+ t i d d d |  i ƒ|  i ƒ  d Sn/ |  i i ƒ  } | o |  i	 ƒ  n |  i
 ƒ  d  S(   Ns   Don't debug nows*   You can only toggle the debugger when idles   masters   break(   s   selfs	   executings   tkMessageBoxs	   showerrors   texts   set_debugger_indicators   interps   getdebuggers   dbs   close_debuggers   open_debugger(   s   selfs   events   db(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   toggle_debugger  s    
	
c         C   s%   |  i i ƒ  } |  i d | ƒ d  S(   Ns   <<toggle-debugger>>(   s   selfs   interps   getdebuggers   dbs   setvar(   s   selfs   db(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   set_debugger_indicator  s    c         C   s   d  S(   N(    (   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   toggle_jit_stack_viewer  s    c         C   s“   |  i i ƒ  } | oo |  i i t ƒ | i ƒ  |  i i o t i	 |  i i ƒ n |  i
 ƒ  |  i i d ƒ d t _ |  i ƒ  n |  i ƒ  d  S(   Ns   [DEBUG OFF]
s   >>> (   s   selfs   interps   getdebuggers   dbs   setdebuggers   Nones   closes   rpcclts   RemoteDebuggers   close_remote_debuggers   resetoutputs   consoles   writes   syss   ps1s
   showprompts   set_debugger_indicator(   s   selfs   db(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   close_debugger  s    

	c         C   ss   |  i i o t i |  i i |  ƒ } n t i |  ƒ } |  i i | ƒ | i ƒ  d t	 _
 |  i ƒ  |  i ƒ  d  S(   Ns   [DEBUG ON]
>>> (   s   selfs   interps   rpcclts   RemoteDebuggers   start_remote_debuggers   dbg_guis   Debuggers   setdebuggers   load_breakpointss   syss   ps1s
   showprompts   set_debugger_indicator(   s   selfs   dbg_gui(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   open_debugger&  s    
	
c         C   s   |  i ƒ  d |  _ d S(   s   Helper for ModifiedInterpreteri   N(   s   selfs   resetoutputs	   executing(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   beginexecuting2  s     
c         C   s    d |  _ d |  _ |  i ƒ  d S(   s   Helper for ModifiedInterpreteri    N(   s   selfs	   executings   canceleds
   showprompt(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   endexecuting7  s     		c         C   sn   |  i o: t i d d d d d |  i ƒ} | t j o d SqD n t |  _ |  i i	 d |  i
 |  i ƒ d S(	   s   Extend EditorWindow.close()s   Kill?s6   The program is still running!
 Do you want to kill it?s   defaults   oks   parents   canceli   N(   s   selfs	   executings   tkMessageBoxs   askokcancels   texts   responses   Falses   Trues   closings   afters   pollintervals   close2(   s   selfs   response(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   close=  s     
		c         C   s   t  i |  ƒ Sd  S(   N(   s   EditorWindows   closes   self(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   close2K  s    c         C   s~   |  i ƒ  t o |  i i ƒ  n |  i t _ |  i t _	 |  i
 t _ t |  _ t |  _ t |  i _ t |  _ t i |  ƒ d S(   sE   Extend EditorWindow._close(), shut down debugger and execution serverN(   s   selfs   close_debuggers   use_subprocesss   interps   kill_subprocesss   save_stdouts   syss   stdouts   save_stderrs   stderrs
   save_stdins   stdins   Nones   consoles   flists   pyshells   historys   EditorWindows   _close(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   _closeN  s     
			c         C   s   t  Sd S(   s8   Override EditorWindow method: never remove the colorizerN(   s   True(   s   selfs   filename(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   ispythonsource^  s     c         C   s   |  i Sd  S(   N(   s   selfs   shell_title(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   short_titleb  s    s@   Type "copyright", "credits" or "license()" for more information.s˜  
    ****************************************************************
    Personal firewall software may warn about the connection IDLE
    makes to its subprocess using this computer's internal loopback
    interface.  This connection is not visible on any external
    interface and no data is sent to or received from the Internet.
    ****************************************************************
    c         C   ss   |  i ƒ  t o
 d } n d } |  i d t i t i |  i |  i	 t
 i | f ƒ |  i ƒ  d  k } t | _ d  S(   Ns    s   ==== No Subprocess ====s&   Python %s on %s
%s
%s
IDLE %s      %s
(   s   selfs   resetoutputs   use_subprocesss   nosubs   writes   syss   versions   platforms	   COPYRIGHTs   firewallmessages   idlevers   IDLE_VERSIONs
   showprompts   Tkinters   Nones   _default_root(   s   selfs   Tkinters   nosub(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   beginq  s    

2
	c         C   s   |  i ƒ  |  i i ƒ  d  S(   N(   s   selfs   begins   tops   mainloop(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   interact~  s    
c         C   sØ   |  i } z d |  _ |  i i ƒ  Wd  | |  _ X|  i i d d ƒ } t | t	 ƒ o9 d  k
 } y | i | i ƒ } WqŽ t j
 o qŽ Xn |  i ƒ  |  i o d |  _ t ‚ n |  i o d |  _ d Sn | Sd  S(   Ni   s   iomarks   end-1ci    s    (   s   selfs   readings   saves   tops   mainloops   texts   gets   lines
   isinstances   unicodes	   IOBindings   encodes   encodings   UnicodeErrors   resetoutputs   canceleds   KeyboardInterrupts	   endoffile(   s   selfs   saves   lines	   IOBinding(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   readline‚  s*    		 
		

	

	c         C   s   t  Sd  S(   N(   s   True(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   isatty™  s    c         C   sî   y% |  i i d d d ƒ o d  Sn Wn n X|  i p |  i o, |  i ƒ  |  i i d ƒ |  i ƒ  d Sn d |  _	 d |  _
 |  i o |  i i ƒ  nJ |  i o
 |  i i o2 |  i i ƒ  o |  i i ƒ  qæ |  i i ƒ  n d Sd  S(   Ns	   sel.firsts   !=s   sel.lasts   KeyboardInterrupt
s   breaki    i   (   s   selfs   texts   compares	   executings   readings   resetoutputs   interps   writes
   showprompts	   endoffiles   canceleds   tops   quits   rpcclts   getdebuggers   restart_subprocesss   interrupt_subprocess(   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   cancel_callbackœ  s&    

		
c         C   s¢   |  i o |  i o d  Sn |  i i d d d ƒ o |  i i d d d ƒ o d  Sn |  i o |  i ƒ  |  i ƒ  n  d |  _ d |  _ |  i	 i
 ƒ  d Sd  S(   Ns   iomarks   ==s   inserts   end-1ci    i   s   break(   s   selfs	   executings   readings   texts   compares   resetoutputs   closes   canceleds	   endoffiles   tops   quit(   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   eof_callback²  s    3
		c         C   sŸ   | i d j o | i d j o d  Sn |  i i d d d ƒ o |  i i d d d ƒ oA |  i i d d ƒ |  i i d d d	 ƒ |  i i d ƒ d
 Sn d  S(   Ni    s   Homes   iomarks   <=s   inserts   insert linestarts   sels   1.0s   ends   break(	   s   events   states   keysyms   selfs   texts   compares   mark_sets
   tag_removes   see(   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   home_callbackÁ  s     2c         C   sF   |  i o' |  i i d d ƒ |  i i d ƒ n |  i | ƒ d Sd  S(   Ns   inserts   
s   break(   s   selfs   readings   texts   inserts   sees   newline_and_indent_events   event(   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   linefeed_callbackË  s
    
c         C   s   |  i o |  i o d  Sn yR |  i i d d ƒ } | o2 |  i i d d d ƒ o |  i | ƒ d Sqn n Wn n X|  i i d d d ƒ o.|  i i d	 d ƒ } | o |  i i d d | d
 ƒ o, |  i |  i i | d | d
 ƒ ƒ d Sn |  i i
 d	 d ƒ } | o |  i i d d | d ƒ o, |  i |  i i | d | d
 ƒ ƒ d Sn |  i i d d ƒ } t i i d ƒ d } | i | ƒ o | t | ƒ } n |  i | ƒ d Sn |  i i d d d ƒ o |  i i d d ƒ n |  i i d d ƒ } | o | i ƒ  o |  i i d d ƒ n |  i i d d d ƒ o |  i | ƒ d Sn |  i i d d ƒ |  i o' |  i i d d ƒ |  i i d ƒ n |  i | ƒ |  i i d	 d d ƒ |  i i ƒ  |  i o |  i i ƒ  n |  i ƒ  d Sd  S(   Ns	   sel.firsts   sel.lasts   <=s   iomarks   breaks   inserts   <s   iomark linestarts   stdini   i    s   insert lineends   >=s   insert linestarts   
iÿÿÿÿs   end-1cs   end-1c linestart(    s   selfs	   executings   readings   texts   gets   sels   compares   recalls   tag_prevranges   prevs   tag_nextranges   nexts   lines   syss   ps1s   splits   last_line_of_prompts
   startswiths   lens   mark_sets   ss   strips   deletes   newline_and_indent_events   events   inserts   sees   tag_adds   update_idletaskss   tops   quits   runit(   s   selfs   events   sels   last_line_of_prompts   nexts   ss   lines   prev(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   enter_callbackÔ  sX    $$$$


c         C   s"   |  i o |  i i | ƒ n d  S(   N(   s   selfs   historys   recalls   s(   s   selfs   s(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   recall  s    
c         C   sÙ   |  i i d d ƒ } t | ƒ } x1 | d j o | | d d j o | d } q$ W| d j o | | d d j o | d } n x1 | d j o | | d d j o | d } qˆ W| |  } |  i i | ƒ } d  S(   Ns   iomarks   end-1ci    i   s    	s   
(	   s   selfs   texts   gets   lines   lens   is   interps	   runsources   more(   s   selfs   is   lines   more(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   runit  s     "" "
c         C   sv   |  i i o |  i i ƒ  Sn y t i Wn$ t i d d d |  i ƒd  Sn Xd k	 l
 } | |  i |  i ƒ } d  S(   Ns   No stack traces@   There is no stack trace yet.
(sys.last_traceback is not defined)s   master(   s   StackBrowser(   s   selfs   interps   rpcclts   remote_stack_viewers   syss   last_tracebacks   tkMessageBoxs	   showerrors   texts   StackViewers   StackBrowsers   roots   flists   sv(   s   selfs   events   svs   StackBrowser(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   open_stack_viewer$  s    	c         C   s$   |  i i d ƒ |  i i d ƒ d  S(   Ns   iomarks   restart(   s   selfs   texts   see(   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   view_restart_mark2  s    c         C   s   |  i i ƒ  d  S(   N(   s   selfs   interps   restart_subprocess(   s   selfs   event(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   restart_shell6  s    c         C   sk   |  i ƒ  y t t i ƒ } Wn d } n X|  i i | ƒ |  i i	 d d ƒ |  i
 ƒ  |  i i ƒ  d  S(   Ns    s   inserts   end-1c(   s   selfs   resetoutputs   strs   syss   ps1s   ss   consoles   writes   texts   mark_sets   set_line_and_columns   ios
   reset_undo(   s   selfs   s(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys
   showprompt9  s    


c         C   s�   |  i i d d ƒ } |  i o |  i i | ƒ n |  i i d ƒ d j o |  i i d d ƒ n |  i i d d ƒ |  i ƒ  d t	 i
 _ d  S(   Ns   iomarks   end-1cs   end-2cs   
i    (   s   selfs   texts   gets   sources   historys   history_stores   inserts   mark_sets   set_line_and_columns   syss   stdouts	   softspace(   s   selfs   source(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   resetoutputD  s    

c         C   sw   y@ |  i i d d ƒ t i |  | | d ƒ |  i i d d ƒ Wn n X|  i o d |  _ t o
 t	 ‚ qs n d  S(   Ns   iomarks   rights   lefti    (
   s   selfs   texts   mark_gravitys   OutputWindows   writes   ss   tagss   canceleds   use_subprocesss   KeyboardInterrupt(   s   selfs   ss   tags(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   writeN  s    
	(1   s   __name__s
   __module__s   shell_titles   ModifiedColorDelegators   ColorDelegators   ModifiedUndoDelegators   UndoDelegators
   menu_specss   IdleHistorys   Historys   Nones   __init__s   Falses   readings	   executings   canceleds	   endoffiles   closings   toggle_debuggers   set_debugger_indicators   toggle_jit_stack_viewers   close_debuggers   open_debuggers   beginexecutings   endexecutings   closes   close2s   _closes   ispythonsources   short_titles	   COPYRIGHTs   firewallmessages   begins   interacts   readlines   isattys   cancel_callbacks   eof_callbacks   home_callbacks   linefeed_callbacks   enter_callbacks   recalls   runits   open_stack_viewers   view_restart_marks   restart_shells
   showprompts   resetoutputs   write(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   PyShellµ  sT   <
4																	
			>				
s
   PseudoFilec           B   s8   t  Z e d „ Z d „  Z d „  Z d „  Z d „  Z RS(   Nc         C   s(   | |  _  | |  _ d |  _ | |  _ d  S(   Ni    (   s   shells   selfs   tagss	   softspaces   encoding(   s   selfs   shells   tagss   encoding(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   __init__\  s    			c         C   s   |  i i | |  i ƒ d  S(   N(   s   selfs   shells   writes   ss   tags(   s   selfs   s(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   writeb  s    c         C   s   t  |  i | ƒ d  S(   N(   s   maps   selfs   writes   l(   s   selfs   l(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys
   writelinese  s    c         C   s   d  S(   N(    (   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   flushh  s    c         C   s   t  Sd  S(   N(   s   True(   s   self(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   isattyk  s    (   s   __name__s
   __module__s   Nones   __init__s   writes
   writeliness   flushs   isatty(    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys
   PseudoFileZ  s
   			s‡  
USAGE: idle  [-deins] [-t title] [file]*
       idle  [-dns] [-t title] (-c cmd | -r file) [arg]*
       idle  [-dns] [-t title] - [arg]*

  -h         print this help message and exit
  -n         run IDLE without a subprocess (see Help/IDLE Help for details)

The following options will override the IDLE 'settings' configuration:

  -e         open an edit window
  -i         open a shell window

The following options imply -i and will open a shell:

  -c cmd     run the command in a shell, or
  -r file    run script from file

  -d         enable the debugger
  -s         run $IDLESTARTUP or $PYTHONSTARTUP before anything else
  -t title   set title of shell window

A default edit window will be bypassed when -c, -r, or - are used.

[arg]* are passed to the command (-c) or script (-r) in sys.argv[1:].

Examples:

idle
        Open an edit window or shell depending on IDLE's configuration.

idle foo.py foobar.py
        Edit the files, also open a shell if configured to start with shell.

idle -est "Baz" foo.py
        Run $IDLESTARTUP or $PYTHONSTARTUP, edit foo.py, and open a shell
        window with the title "Baz".

idle -c "import sys; print sys.argv" "foo"
        Open a shell window and run the command, passing "-c" in sys.argv[0]
        and "foo" in sys.argv[1].

idle -d -s -r foo.py "Hello World"
        Open a shell window, run a startup script, enable the debugger, and
        run foo.py, passing "foo.py" in sys.argv[0] and "Hello World" in
        sys.argv[1].

echo "import sys; print sys.argv" | idle - "foobar"
        Open a shell window, run the script piped in, passing '' in sys.argv[0]
        and "foobar" in sys.argv[1].
c          C   sœ  t  a t } t } t } t } t } t }  y t
 i Wn t j
 o d t
 _ n Xy# t i t
 i d d ƒ \ } } WnO t i j
 o@ } t
 i i d t | ƒ ƒ t
 i i t ƒ t
 i d ƒ n XxB| D]:\ } }
 | d j o |
 } t  } n | d j o t  } t  } n | d j o
 t  } n | d	 j o t
 i i t ƒ t
 i ƒ  n | d
 j o
 t  } n | d j o
 t a n | d j o: |
 } t i i | ƒ o n d G| GHt
 i ƒ  t  } n | d j o t  }  t  } n | d j o |
 t _ t  } qÐ qÐ W| o | d d j o t
 i  i! ƒ  } t  } n x= t" t# t
 i ƒ ƒ D]& } t i i% t
 i | ƒ t
 i | <qUW| o | d d j o d g | d t
 _ n÷ | o d g | t
 _ nÜ | o | g | t
 _ nÁ | o… t  } g  } x' | D] } | i( t i i) | ƒ ƒ qÿWx€ | D]@ } t i i% | ƒ } | t
 i j o t
 i i+ d | ƒ q)q)Wn5 t i, ƒ  } | t
 i j o t
 i i+ d | ƒ n t- i. d d d d d ƒ}	 | p |	 } | p |	 } t0 d d ƒ a1 t2 t1 ƒ t1 i3 ƒ  t4 t1 ƒ a5 | o` | p | o8 x | D] } t5 i6 | ƒ q'W| o t5 i7 ƒ  qXn | o t5 i8 ƒ  q˜n( | o  t t5 ƒ t5 _9 t5 i9 i: ƒ  n t5 i9 } | o | i< ƒ  n |  oW t i= i> d ƒ p t i= i> d ƒ } | o t i i | ƒ o | i? i@ | ƒ qn | p | ob | i? iA d t
 i ƒ | o | i? iB | ƒ q„| o$ | i? iC | ƒ | i? i@ | ƒ q„n t1 iD ƒ  t1 iE ƒ  d  S(   Ns   >>> i   s   c:deihnr:st:s
   Error: %s
i   s   -cs   -ds   -es   -hs   -is   -ns   -rs   No script file: s   -ss   -ti    s   -s    s   mains   Generals   editor-on-startups   types   bools	   classNames   Idles   IDLESTARTUPs   PYTHONSTARTUPsb   if 1:
            import sys as _sys
            _sys.argv = %s
            del _sys
            
(F   s   Trues   use_subprocesss   Falses   enable_shells   enable_edits   debugs   Nones   cmds   scripts   startups   syss   ps1s   AttributeErrors   getopts   argvs   optss   argss   errors   msgs   stderrs   writes   strs	   usage_msgs   exits   os   as   stdouts   oss   paths   isfiles   PyShells   shell_titles   stdins   reads   ranges   lens   is   abspaths   pathxs   filenames   appends   dirnames   dirs   inserts   getcwds   idleConfs	   GetOptions
   edit_starts   Tks   roots   fixwordbreakss   withdraws   PyShellFileLists   flists   opens   news
   open_shells   pyshells   begins   shells   open_debuggers   environs   gets   interps   execfiles
   runcommands
   execsources   prepend_syspaths   mainloops   destroy(   s   startups   enable_edits   scripts   pathxs   filenames   msgs   shells   argss   enable_shells
   edit_starts   as   is   cmds   os   dirs   debugs   opts(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   main¤  sÜ     # 




	


	
 $  

 	%
c           C   s	   d GHd  S(   NsT  
IDLE cannot run.

IDLE needs to use a specific TCP/IP port (8833) in order to communicate with
its Python execution server.  IDLE is unable to bind to this port, and so
cannot start. Here are some possible causes of this problem:

  1. TCP/IP networking is not installed or not working on this computer
  2. Another program (another IDLE?) is running that uses this port
  3. Personal firewall software is preventing IDLE from using this port

Run IDLE with the -n command line switch to start without a subprocess
and refer to Help/IDLE Help "Running without a subprocess" for further
details.
(    (    (    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   display_port_binding_error  s    s   __main__(7   s   oss   os.paths   syss   strings   getopts   res   sockets   times	   threadings	   tracebacks   typess
   exceptionss	   linecaches   codes   InteractiveInterpreters   Tkinters   tkMessageBoxs   EditorWindows   fixwordbreakss   FileLists   ColorDelegators   UndoDelegators   OutputWindows   configHandlers   idleConfs   idlevers   rpcs   Debuggers   RemoteDebuggers   ascii_letterss   digitss
   IDENTCHARSs	   LOCALHOSTs   signals   SIGTERMs   ImportErrors   warningss   idle_showwarnings   showwarnings
   checkcaches   extended_linecache_checkcaches   PyShellEditorWindows   PyShellFileLists   ModifiedColorDelegators   ModifiedUndoDelegators	   RPCClients   MyRPCClients   ModifiedInterpreters   PyShells
   PseudoFiles	   usage_msgs   mains   display_port_binding_errors   __name__s   modules(*   s   fixwordbreakss
   PseudoFiles   ModifiedColorDelegators   rpcs   ModifiedUndoDelegators   PyShellEditorWindows
   IDENTCHARSs	   threadings   InteractiveInterpreters   FileLists   MyRPCClients   res   PyShells   extended_linecache_checkcaches	   LOCALHOSTs   getopts   ModifiedInterpreters   mains   idlevers   PyShellFileLists   idle_showwarnings   strings   warningss	   usage_msgs   EditorWindows   syss   display_port_binding_errors   UndoDelegators   SIGTERMs   OutputWindows   typess   Debuggers   sockets   RemoteDebuggers	   tracebacks   idleConfs	   linecaches   ColorDelegators   tkMessageBoxs   times
   exceptionss   os(    (    s,   /mit/python/lib/python2.3/idlelib/PyShell.pys   ?   sn   																					¢ÿ …ÿ ¦5	x	