£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

f  c               @   s~  d  d l  Z  d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l	 Z	 d  d l
 Z
 d  d l Z d  d l Z d  d l Z d  d l m Z d  d l m Z m Z y d  d l TWn2 e k
 re d d e j e j d  Yn Xd  d l j Z d  d l m Z m Z d  d	 l m Z d  d
 l  m! Z! d  d l" m# Z# d  d l$ m% Z% d  d l& m' Z' d  d l( m) Z) d  d l( m* Z* d  d l( m+ Z+ d  d l( m, Z, d  d l( m- Z- d Z. d  Z/ e j a0 d  d l1 Z1 e2 d d  Z3 e2 e2 d d  Z4 e2 a5 d d   Z6 e6 e7  e2 e j8 d d  Z9 e9 e _8 Gd d   d e  Z: Gd d   d e  Z; Gd  d!   d! e!  Z< Gd" d#   d# e#  Z= Gd$ d%   d% e* j>  Z? Gd& d'   d' e  Z@ Gd( d)   d) e%  ZA Gd* d+   d+ e jB  ZC Gd, d-   d- eC  ZD Gd. d/   d/ eC  ZE d0 ZF d1 d2   ZG eH d3 k rpe jI d3 e jI d) <eG   n  e6 eJ  d S(4   i    N(   u   InteractiveInterpreter(   u   python_versionu   system(   u   *uK   ** IDLE can't import Tkinter.  Your Python may not be configured for Tk. **u   filei   (   u   EditorWindowu   fixwordbreaks(   u   FileList(   u   ColorDelegator(   u   UndoDelegator(   u   OutputWindow(   u   idleConf(   u   idlever(   u   rpc(   u   Debugger(   u   RemoteDebugger(   u   macosxSupportu	   127.0.0.1c             C   sy   d } | d | | f 7} | d k r; t j | |  } n  | j   } | r^ | d | 7} n  | d | j |  f 7} | S(   u   Format warnings the IDLE way.u!   
Warning (from warnings module):
u     File "%s", line %s
u       %s
u   %s: %s
N(   u   Noneu	   linecacheu   getlineu   stripu   __name__(   u   messageu   categoryu   filenameu   linenou   lineu   s(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   idle_formatwarning3   s    u   idle_formatwarningc             C   sg   | d k r t } n  y3 | j t |  | | | d |  | j d  Wn t t f k
 rb Yn Xd S(   u   Show Idle-format warning (after replacing warnings.showwarning).

    The differences are the formatter called, the file=None replacement,
    which can be None, the capture of the consequence AttributeError,
    and the output of a hard-coded prompt.
    u   lineu   >>> N(   u   Noneu   warning_streamu   writeu   idle_formatwarningu   AttributeErroru   OSError(   u   messageu   categoryu   filenameu   linenou   fileu   line(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   idle_showwarning@   s    		u   idle_showwarningc             C   sL   |  r* t  d k rH t j a  t t _ qH n t  d k	 rH t  t _ d a  n  d S(   u>   Replace warning.showwarning with idle_showwarning, or reverse.N(   u   _warnings_showwarningu   Noneu   warningsu   showwarningu   idle_showwarning(   u   capture(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   capture_warningsS   s    		u   capture_warningsc             C   s{   t  j } i  } xN t |  D]@ } | d d  | d d  d k r | j |  | | <q q W| |   | j |  d S(   uo  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()
    (skipping them), and then restore the saved entries.

    orig_checkcache is bound at definition time to the original
    method, allowing it to be patched.
    Ni   u   <>i(   u	   linecacheu   cacheu   listu   popu   update(   u   filenameu   orig_checkcacheu   cacheu   saveu   key(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   extended_linecache_checkcacheb   s    	$
u   extended_linecache_checkcachec             B   s   |  Ee  Z d  Z d Z d d   Z d$ d% d& d' d( d) g Z d d   Z d# d d  Z d# d d  Z	 d d   Z
 d d   Z d d   Z d d   Z d d    Z d! d"   Z d# S(*   u   PyShellEditorWindowu6   Regular text edit window in IDLE, supports breakpointsc             G   s   g  |  _  t j |  |  |  j j d |  j  |  j j d |  j  |  j j d |  j j  t	 j
 j t j   d  |  _ |  j j |  d d  } |  j j |  |  j j r |  j   n  d  S(   Nu   <<set-breakpoint-here>>u   <<clear-breakpoint-here>>u   <<open-python-shell>>u   breakpoints.lstc             S   s   | j    |    d  S(   N(   u   restore_file_breaks(   u   old_hooku   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   filename_changed_hook   s    
u;   PyShellEditorWindow.__init__.<locals>.filename_changed_hook(   u   breakpointsu   EditorWindowu   __init__u   textu   bindu   set_breakpoint_hereu   clear_breakpoint_hereu   flistu
   open_shellu   osu   pathu   joinu   idleConfu   GetUserCfgDiru   breakpointPathu   iou   filename_change_hooku   set_filename_change_hooku   filenameu   restore_file_breaks(   u   selfu   argsu   filename_changed_hook(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   __init__|   s    		u   PyShellEditorWindow.__init__u   Cutu   <<cut>>u   rmenu_check_cutu   Copyu   <<copy>>u   rmenu_check_copyu   Pasteu	   <<paste>>u   rmenu_check_pasteu   Set Breakpointu   <<set-breakpoint-here>>u   Clear Breakpointu   <<clear-breakpoint-here>>c             C   s   |  j  } |  j j } | j d d | d | d  y |  j j |  } Wn" t k
 rn |  j j |  Yn Xy& |  j j	 j
 j } | j | |  Wn Yn Xd  S(   Nu   BREAKu   %d.0i   (   u   textu   iou   filenameu   tag_addu   breakpointsu   indexu
   ValueErroru   appendu   flistu   pyshellu   interpu   debuggeru   set_breakpoint_here(   u   selfu   linenou   textu   filenameu   iu   debug(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   set_breakpoint   s    	u"   PyShellEditorWindow.set_breakpointc             C   sU   |  j  } |  j j } | s) | j   d  St t | j d    } |  j |  d  S(   Nu   insert(   u   textu   iou   filenameu   bellu   intu   floatu   indexu   set_breakpoint(   u   selfu   eventu   textu   filenameu   lineno(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   set_breakpoint_here   s    	
u'   PyShellEditorWindow.set_breakpoint_herec             C   s   |  j  } |  j j } | s) | j   d  St t | j d    } y |  j j |  Wn Yn X| j	 d d d  y& |  j
 j j j } | j | |  Wn Yn Xd  S(   Nu   insertu   BREAKu   insert linestartu   insert lineend +1char(   u   textu   iou   filenameu   bellu   intu   floatu   indexu   breakpointsu   removeu
   tag_removeu   flistu   pyshellu   interpu   debuggeru   clear_breakpoint_here(   u   selfu   eventu   textu   filenameu   linenou   debug(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   clear_breakpoint_here   s"    	
u)   PyShellEditorWindow.clear_breakpoint_herec          	   C   s   |  j  r |  j } |  j j } | s2 | j   d  Sg  |  _  | j d d t  y# |  j j j	 j
 } | j |  Wq Yq Xn  d  S(   Nu   BREAKu   1.0(   u   breakpointsu   textu   iou   filenameu   bellu
   tag_removeu   ENDu   flistu   pyshellu   interpu   debuggeru   clear_file_breaks(   u   selfu   textu   filenameu   debug(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   clear_file_breaks   s    		
	u%   PyShellEditorWindow.clear_file_breaksc             C   sb  |  j  } |  j j } y+ t |  j d   } | j   } Wd QXWn t k
 rZ g  } Yn Xy t |  j d  v } x1 | D]) } | j | d  sz | j |  qz qz W|  j	   |  j  } | r | j | d t
 |  d  n  Wd QXWnr t k
 r]} zR t |  j d d  sKd |  j _ t j d d d	 d
 t
 |  d |  j  n  WYd d } ~ Xn Xd S(   u#   Save breakpoints when file is savedu   rNu   wu   =u   
u   breakpoint_error_displayedu   titleu
   IDLE Erroru   messageu$   Unable to update breakpoint list:
%su   parentFT(   u   breakpointsu   iou   filenameu   openu   breakpointPathu	   readlinesu   OSErroru
   startswithu   writeu   update_breakpointsu   stru   getattru   rootu   Falseu   Trueu   breakpoint_error_displayedu   tkMessageBoxu	   showerroru   text(   u   selfu   breaksu   filenameu   fpu   linesu   new_fileu   lineu   err(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   store_file_breaks   s.    	
	,u%   PyShellEditorWindow.store_file_breaksc             C   s   |  j  j   |  j d  k r  d  S|  j j } | d  k r< d  St j j |  j  r t	 |  j d   } | j
   } Wd  QXxe | D]Z } | j | d  r t | t |  d d    } x | D] } |  j |  q Wq q Wn  d  S(   Nu   ru   =i   (   u   textu   updateu   iou   Noneu   filenameu   osu   pathu   isfileu   breakpointPathu   openu	   readlinesu
   startswithu   evalu   lenu   set_breakpoint(   u   selfu   filenameu   fpu   linesu   lineu   breakpoint_linenumbersu   breakpoint_linenumber(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   restore_file_breaks   s     u'   PyShellEditorWindow.restore_file_breaksc             C   s4   |  j  } | j d  } |  j |  } | |  _ d S(   u3   Retrieves all the breakpoints in the current windowu   BREAKN(   u   textu
   tag_rangesu   ranges_to_linenumbersu   breakpoints(   u   selfu   textu   rangesu   linenumber_list(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   update_breakpoints  s    	u&   PyShellEditorWindow.update_breakpointsc             C   s   g  } x t  d t |  d  D]f } t t | | j   } t t | | d j   } x' | | k  r | j |  | d 7} q^ Wq W| S(   Ni    i   i   (   u   rangeu   lenu   intu   floatu   stringu   append(   u   selfu   rangesu   linesu   indexu   linenou   end(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   ranges_to_linenumbers  s    u)   PyShellEditorWindow.ranges_to_linenumbersc             C   s   |  j    t j |   d S(   u7   Extend base method - clear breaks when module is closedN(   u   clear_file_breaksu   EditorWindowu   _close(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   _close(  s    
u   PyShellEditorWindow._closeN(   u   Cutu   <<cut>>u   rmenu_check_cut(   u   Copyu   <<copy>>u   rmenu_check_copy(   u   Pasteu	   <<paste>>u   rmenu_check_paste(   NNN(   u   Set Breakpointu   <<set-breakpoint-here>>N(   u   Clear Breakpointu   <<clear-breakpoint-here>>N(   u   __name__u
   __module__u   __qualname__u   __doc__u   __init__u   Noneu   rmenu_specsu   set_breakpointu   set_breakpoint_hereu   clear_breakpoint_hereu   clear_file_breaksu   store_file_breaksu   restore_file_breaksu   update_breakpointsu   ranges_to_linenumbersu   _close(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   PyShellEditorWindowy   s"   		/u   PyShellEditorWindowc             B   s5   |  Ee  Z d  Z d Z e Z d Z d d d  Z d S(   u   PyShellFileListu8   Extend base class: IDLE supports a shell and breakpointsc             C   sQ   |  j  r |  j  j j   n. t |   |  _  |  j  rJ |  j  j   sJ d  Sn  |  j  S(   N(   u   pyshellu   topu   wakeupu   PyShellu   beginu   None(   u   selfu   event(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   open_shell7  s    		u   PyShellFileList.open_shellN(	   u   __name__u
   __module__u   __qualname__u   __doc__u   PyShellEditorWindowu   EditorWindowu   Noneu   pyshellu
   open_shell(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   PyShellFileList.  s   u   PyShellFileListc             B   sJ   |  Ee  Z d  Z d Z d d   Z d d   Z d d   Z d d	   Z d
 S(   u   ModifiedColorDelegatoru8   Extend base class: colorizer for the shell window itselfc             C   s   t  j |   |  j   d  S(   N(   u   ColorDelegatoru   __init__u   LoadTagDefs(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   __init__E  s    u   ModifiedColorDelegator.__init__c             C   s7   |  j  d d d  |  j d d d  t j |   d  S(   Nu   TODOu   1.0u   iomarku   SYNC(   u
   tag_removeu   tag_addu   ColorDelegatoru   recolorize_main(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   recolorize_mainI  s    u&   ModifiedColorDelegator.recolorize_mainc             C   s   t  j |   t j d d d  } |  j j i i d  d 6d  d 6d 6t j | d  d 6t j | d  d 6t j | d	  d	 6 d  S(
   Nu   mainu   Themeu   nameu
   backgroundu
   foregroundu   stdinu   stdoutu   stderru   console(   u   ColorDelegatoru   LoadTagDefsu   idleConfu	   GetOptionu   tagdefsu   updateu   Noneu   GetHighlight(   u   selfu   theme(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   LoadTagDefsN  s    u"   ModifiedColorDelegator.LoadTagDefsc             C   s+   x$ |  j  D] } |  j | d d  q
 Wd  S(   Nu   iomarku   end(   u   tagdefsu
   tag_remove(   u   selfu   tag(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   removecolorsX  s    u#   ModifiedColorDelegator.removecolorsN(   u   __name__u
   __module__u   __qualname__u   __doc__u   __init__u   recolorize_mainu   LoadTagDefsu   removecolors(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   ModifiedColorDelegatorB  s
   
u   ModifiedColorDelegatorc             B   s8   |  Ee  Z d  Z d Z d d d  Z d d d  Z d S(   u   ModifiedUndoDelegatoru;   Extend base class: forbid insert/delete before the I/O markc             C   s\   y- |  j  j | d d  r, |  j  j   d  SWn t k
 rA Yn Xt j |  | | |  d  S(   Nu   <u   iomark(   u   delegateu   compareu   bellu   TclErroru   UndoDelegatoru   insert(   u   selfu   indexu   charsu   tags(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   insert`  s    u   ModifiedUndoDelegator.insertc             C   sY   y- |  j  j | d d  r, |  j  j   d  SWn t k
 rA Yn Xt j |  | |  d  S(   Nu   <u   iomark(   u   delegateu   compareu   bellu   TclErroru   UndoDelegatoru   delete(   u   selfu   index1u   index2(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   deletei  s    u   ModifiedUndoDelegator.deleteN(   u   __name__u
   __module__u   __qualname__u   __doc__u   Noneu   insertu   delete(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   ModifiedUndoDelegator]  s   	u   ModifiedUndoDelegatorc             B   s    |  Ee  Z d  Z d d   Z d S(   u   MyRPCClientc             C   s
   t   d S(   u0   Override the base class - just re-raise EOFErrorN(   u   EOFError(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   handle_EOFu  s    u   MyRPCClient.handle_EOFN(   u   __name__u
   __module__u   __qualname__u
   handle_EOF(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   MyRPCClients  s   u   MyRPCClientc             B   s  |  Ee  Z d  Z d d   Z d< Z d< Z d< Z d d   Z d d   Z	 d d   Z
 d= d	 d
  Z d d   Z d d   Z d d   Z d d   Z d= d d  Z d< Z d d   Z d< Z d d   Z d d   Z d d   Z d d   Z d Z d  d!   Z d< d" d#  Z d$ d%   Z d& d'   Z d( d)   Z d< d* d+  Z d, d-   Z  d. d/   Z! d0 d1   Z" d2 d3   Z# d4 d5   Z$ d6 d7   Z% d8 d9   Z& d: d;   Z' d< S(>   u   ModifiedInterpreterc             C   sf   | |  _  t j d j } t j |  d | d  |  _ d |  _	 d  |  _
 t |  _ |  j j j |  _ d  S(   Nu   __main__u   localsF(   u	   tkconsoleu   sysu   modulesu   __dict__u   InteractiveInterpreteru   __init__u   Noneu   save_warnings_filtersu   Falseu
   restartingu   subprocess_arglistu   PORTu   portu   compileu   compileru   flagsu   original_compiler_flags(   u   selfu	   tkconsoleu   locals(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   __init__|  s    					u   ModifiedInterpreter.__init__c             C   s:   |  j  d  k r! |  j   |  _  n  t j |  j   |  _ d  S(   N(   u   subprocess_arglistu   Noneu   build_subprocess_arglistu
   subprocessu   Popenu
   rpcsubproc(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   spawn_subprocess  s    u$   ModifiedInterpreter.spawn_subprocessc             C   s   |  j  d k s t d   d d   t j D } t j d d d d d d	 d
 } t d k rn d | f } n d | f } t j g | d | t	 |  j   g S(   Ni    u/   Socket should have been assigned a port number.c             S   s   g  |  ] } d  |  q S(   u   -W(    (   u   .0u   s(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   <listcomp>  s   	 u@   ModifiedInterpreter.build_subprocess_arglist.<locals>.<listcomp>u   mainu   Generalu   delete-exitfuncu   defaultu   typeu   boolu   idlelib.PyShellu&   __import__('idlelib.run').run.main(%r)u   __import__('run').main(%r)u   -cF(
   u   portu   AssertionErroru   sysu   warnoptionsu   idleConfu	   GetOptionu   Falseu   __name__u
   executableu   str(   u   selfu   wu	   del_exitfu   command(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   build_subprocess_arglist  s    	u,   ModifiedInterpreter.build_subprocess_arglistc             C   s  t  |  j f } xn t d  D]R } t j |  y t |  |  _ PWq t j k
 rm } z WYd  d  } ~ Xq Xq W|  j	   d  S|  j j j   d |  _ t d k r |  j j j t j t j d  n  |  j   |  j j j d  y |  j j   Wn6 t j k
 r-} z |  j   d  SWYd  d  } ~ Xn X|  j j d |  j  |  j j d |  j j  |  j j d |  j j  |  j j d |  j j  |  j j d	 |  j j  |  j j d
 t  |  j j d |   |  j d d  |  j   |  j S(   Ni   i   i    i
   u   consoleu   stdinu   stdoutu   stderru   flistu	   linecacheu   interpu   with_cwdT(    u   HOSTu   portu   rangeu   timeu   sleepu   MyRPCClientu   rpccltu   socketu   erroru   display_port_binding_erroru   Noneu   listening_socku   getsocknameu   PORTu
   setsockoptu
   SOL_SOCKETu   SO_REUSEADDRu   spawn_subprocessu
   settimeoutu   acceptu   timeoutu   display_no_subprocess_erroru   registeru	   tkconsoleu   stdinu   stdoutu   stderru   flistu	   linecacheu   transfer_pathu   Trueu   poll_subprocess(   u   selfu   addru   iu   err(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   start_subprocess  s>    



u$   ModifiedInterpreter.start_subprocessc             C   s  |  j  r |  j Sd |  _  |  j   } | rM y t j |  j  WqM YqM Xn  |  j j   |  j   |  j } | j	 } d | _	 |  j   y |  j j   Wn6 t j k
 r } z |  j   d  SWYd  d  } ~ Xn X|  j d |  | j   | j j d d  | r | j d  | j   n  t | j  d d d } | j | d |  | j j d	 d  | j j d	 d
  | j   | rt j |  j  } | j   n  |  j |  j j _  d |  _  |  j S(   Nu   with_cwdu   iomarku   end-1cu   
i   i   u   =u	    RESTART u   restartu   leftTF(!   u
   restartingu   rpccltu   Trueu   getdebuggeru   RemoteDebuggeru   close_subprocess_debuggeru   closeu   terminate_subprocessu	   tkconsoleu	   executingu   Falseu   spawn_subprocessu   acceptu   socketu   timeoutu   display_no_subprocess_erroru   Noneu   transfer_pathu   stop_readlineu   textu   deleteu   writeu
   showpromptu   intu   widthu   mark_setu   mark_gravityu   restart_subprocess_debuggeru   load_breakpointsu   original_compiler_flagsu   compileu   compileru   flags(   u   selfu   with_cwdu   debugu   consoleu   was_executingu   erru   halfbaru   gui(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   restart_subprocess  sJ    		
			



	u&   ModifiedInterpreter.restart_subprocessc             C   s   |  j  j d d f  i   d  S(   Nu   execu   interrupt_the_server(   u   rpccltu
   remotecall(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   __request_interrupt  s    u'   ModifiedInterpreter.__request_interruptc             C   s   t  j d |  j  j   d  S(   Nu   target(   u	   threadingu   Threadu'   _ModifiedInterpreter__request_interruptu   start(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   interrupt_subprocess  s    u(   ModifiedInterpreter.interrupt_subprocessc             C   s   |  j  d  k	 r( |  j j j |  j   n  y |  j j j   Wn t k
 rP Yn Xy |  j j   Wn t k
 rv Yn X|  j	   d |  j _ d  |  _ d  S(   NF(   u   _afteridu   Noneu	   tkconsoleu   textu   after_cancelu   rpccltu   listening_socku   closeu   AttributeErroru   terminate_subprocessu   Falseu	   executing(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   kill_subprocess  s    
u#   ModifiedInterpreter.kill_subprocessc             C   sX   y |  j  j   Wn t k
 r) d SYn+ Xy |  j  j   Wn t k
 rS d SYn Xd S(   u"   Make sure subprocess is terminatedN(   u
   rpcsubprocu   killu   OSErroru   wait(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   terminate_subprocess  s    	u(   ModifiedInterpreter.terminate_subprocessc             C   sC   | r" d g } | j  t j  n	 t j } |  j d | f  d  S(   Nu    uR   if 1:
        import sys as _sys
        _sys.path = %r
        del _sys
        
(   u   extendu   sysu   pathu
   runcommand(   u   selfu   with_cwdu   path(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   transfer_path  s    		u!   ModifiedInterpreter.transfer_pathc             C   s  |  j  } | d  k r d  Sy | j |  j d d } Wn; t t t f k
 rr |  j j r^ d  Sd  } |  j	   Yn X| rp|  j j
   d  |  _ | \ } } |  j j } | d k r | d  k	 rGt t |  d | qGnl | d k r	|  j j d  rG|  j   qGn> | d k rGd } t | | d t j t | | d | n  y |  j j   Wqpt k
 rlYqpXn  |  j j s|  j j j |  j j |  j  |  _ n  d  S(	   Nu   waitg?u   OKu   fileu	   EXCEPTIONu   <<toggle-jit-stack-viewer>>u   ERRORu/   PyShell.ModifiedInterpreter: Subprocess ERROR:
(   u   rpccltu   Noneu   pollresponseu
   active_sequ   EOFErroru   OSErroru   KeyboardInterruptu	   tkconsoleu   closingu   restart_subprocessu   resetoutputu   consoleu   printu   repru   getvaru   remote_stack_vieweru   sysu
   __stderr__u   endexecutingu   AttributeErroru   textu   afteru   pollintervalu   poll_subprocessu   _afterid(   u   selfu   cltu   responseu   howu   whatu   consoleu   errmsg(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   poll_subprocess(  s@    		u#   ModifiedInterpreter.poll_subprocessc             C   s   | |  _  d  S(   N(   u   debugger(   u   selfu   debugger(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   setdebuggerP  s    u   ModifiedInterpreter.setdebuggerc             C   s   |  j  S(   N(   u   debugger(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   getdebuggerS  s    u   ModifiedInterpreter.getdebuggerc             C   s   |  j  j j d |  j  d S(   u  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 exception.  It is queried through
        the RPC mechanism.

        i,  N(   u	   tkconsoleu   textu   afteru   remote_stack_viewer(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   open_remote_stack_viewerV  s    
u,   ModifiedInterpreter.open_remote_stack_viewerc             C   s  d d l  m } |  j j d d d i   } | d  k rK |  j j j   d  S| j |  j |  } d d l	 m
 } m } t |  j j  } t j d d d	  } t j | d
  d } | | d | d d }	 |	 j j d d d d  | |	 j d  |  }
 |
 j   d  S(   Ni    (   u   RemoteObjectBrowseru   execu   stackvieweru   flist(   u   ScrolledCanvasu   TreeNodeu   mainu   Themeu   nameu   normalu
   backgroundu   bgu   highlightthicknessu   expandi   u   fillu   both(   u   flist(   u   idlelibu   RemoteObjectBrowseru   rpccltu   remotequeueu   Noneu	   tkconsoleu   rootu   bellu   StubObjectTreeItemu   idlelib.TreeWidgetu   ScrolledCanvasu   TreeNodeu   Toplevelu   idleConfu	   GetOptionu   GetHighlightu   frameu   packu   canvasu   expand(   u   selfu   RemoteObjectBrowseru   oidu   itemu   ScrolledCanvasu   TreeNodeu   topu   themeu
   backgroundu   scu   node(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   remote_stack_viewerc  s    u'   ModifiedInterpreter.remote_stack_vieweri    c             C   s#   |  j  |  } |  j | |  d S(   u1   Like runsource() but assumes complete exec sourceN(   u   stuffsourceu   execfile(   u   selfu   sourceu   filename(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   execsourcev  s    u   ModifiedInterpreter.execsourcec             C   s   | d k r3 t j |   } | j   } Wd QXn  y t | | d  } Wnn t t f k
 r |  j j   |  j j	 } t
 d d | t
 d d | t j |  |  |  j j   Yn X|  j |  d S(   u   Execute an existing fileNu   execu    *** Error in script or command!
u   fileu"   Traceback (most recent call last):(   u   Noneu   tokenizeu   openu   readu   compileu   OverflowErroru   SyntaxErroru	   tkconsoleu   resetoutputu   stderru   printu   InteractiveInterpreteru   showsyntaxerroru
   showpromptu   runcode(   u   selfu   filenameu   sourceu   fpu   codeu   tkerr(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   execfile{  s    u   ModifiedInterpreter.execfilec             C   s   |  j  |  } d |  _ t j d d  |  _ t j d d d t  t | t  sY t	  z t
 j |  | |  SWd |  j d k	 r |  j t j d d  <d |  _ n  Xd S(   uB   Extend base class method: Stuff the source in the line cache firsti    Nu   actionu   erroru   category(   u   stuffsourceu   moreu   warningsu   filtersu   save_warnings_filtersu   filterwarningsu   SyntaxWarningu
   isinstanceu   stru   AssertionErroru   InteractiveInterpreteru	   runsourceu   None(   u   selfu   sourceu   filename(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu	   runsource  s    		u   ModifiedInterpreter.runsourcec             C   sS   d |  j  } |  j  d |  _  | j d  } t |  d d | | f t j | <| S(   u"   Stuff source in the filename cacheu   <pyshell#%d>i   u   
i    (   u   gidu   splitu   lenu	   linecacheu   cache(   u   selfu   sourceu   filenameu   lines(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   stuffsource  s
    #u   ModifiedInterpreter.stuffsourcec             C   s   |  j  d | f  d S(   u>   Prepend sys.path with file's directory if not already includedu(  if 1:
            _filename = %r
            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(   u
   runcommand(   u   selfu   filename(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   prepend_syspath  s    u#   ModifiedInterpreter.prepend_syspathc             C   s  |  j  } | j } | j d d d  t j   \ } } } t | d d  pU | pU d } t | d d  pm d } t | d	 d  p d
 }	 |	 d
 k r | d 7} n  | d k r d |	 d }
 n d | d |	 d f }
 | j | |
  | j   |  j d |  | j	   d S(   u   Override Interactive Interpreter method: Use Colorizing

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

        u   ERRORu   1.0u   endu   msgu    u   <no detail available>u   linenoi   u   offseti    u   iomark + %d charsu&   iomark linestart + %d lines + %d charsu   SyntaxError: %s
N(
   u	   tkconsoleu   textu
   tag_removeu   sysu   exc_infou   getattru   colorize_syntax_erroru   resetoutputu   writeu
   showprompt(   u   selfu   filenameu	   tkconsoleu   textu   typeu   valueu   tbu   msgu   linenou   offsetu   pos(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   showsyntaxerror  s"    		
u#   ModifiedInterpreter.showsyntaxerrorc             C   sJ   |  j  j   |  j   t j |   |  j  j d  rF |  j  j   n  d S(   u1   Extend base class method to reset output properlyu   <<toggle-jit-stack-viewer>>N(   u	   tkconsoleu   resetoutputu   checklinecacheu   InteractiveInterpreteru   showtracebacku   getvaru   open_stack_viewer(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   showtraceback  s
    
u!   ModifiedInterpreter.showtracebackc             C   sX   t  j } xH t | j    D]4 } | d  d  | d d   d k r | | =q q Wd  S(   Ni   u   <>i(   u	   linecacheu   cacheu   listu   keys(   u   selfu   cu   key(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   checklinecache  s    	$u"   ModifiedInterpreter.checklinecachec             C   sV   |  j  j r |  j   d S|  j rB |  j j d d | f i   n t | |  j  d S(   u*   Run the code without invoking the debuggeri    u   execu   runcodei   (   u	   tkconsoleu	   executingu   display_executing_dialogu   rpccltu   remotequeueu   execu   locals(   u   selfu   code(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   runcommand  s    
	u   ModifiedInterpreter.runcommandc             C   s  |  j  j r |  j j   n  |  j   |  j d k	 rW |  j t j d d  <d |  _ n  |  j	 } zNyw |  j  j
   | r |  j d k	 r |  j j d d | f i   |  _ n, | r | j | |  j  n t | |  j  Wn t k
 r4|  j  j s-t j d d d d d |  j  j r   q0|  j   n   Yny t rmt d	 d
 |  j  j |  j   |  j  j   n; |  j  j rd |  j  _ t d d
 |  j  j n
 |  j   Yn XWd t sy |  j  j   Wqt k
 rYqXn  Xd S(   u   Override base class methodNu   execu   runcodeu   Exit?u   Do you want to exit altogether?u   defaultu   yesu   masteru    IDLE internal error in runcode()u   fileu   KeyboardInterruptF(   u	   tkconsoleu	   executingu   interpu   restart_subprocessu   checklinecacheu   save_warnings_filtersu   Noneu   warningsu   filtersu   debuggeru   beginexecutingu   rpccltu
   asyncqueueu
   active_sequ   runu   localsu   execu
   SystemExitu   closingu   tkMessageBoxu   askyesnou   textu   showtracebacku   use_subprocessu   printu   stderru   endexecutingu   canceledu   Falseu   AttributeError(   u   selfu   codeu   debugger(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   runcode  sP    
		
u   ModifiedInterpreter.runcodec             C   s   |  j  j j |  S(   u   Override base class method(   u	   tkconsoleu   stderru   write(   u   selfu   s(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   write  s    u   ModifiedInterpreter.writec             C   s    t  j d d d |  j j d  S(   Nu   Port Binding ErroruA  IDLE can't bind to a TCP/IP port, which is necessary to communicate with its Python execution server.  This might be because no networking is installed on this computer.  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.u   master(   u   tkMessageBoxu	   showerroru	   tkconsoleu   text(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   display_port_binding_error"  s    u.   ModifiedInterpreter.display_port_binding_errorc             C   s    t  j d d d |  j j d  S(   Nu   Subprocess Startup Erroru   IDLE's subprocess didn't make connection.  Either IDLE can't start a subprocess or personal firewall software is blocking the connection.u   master(   u   tkMessageBoxu	   showerroru	   tkconsoleu   text(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   display_no_subprocess_error-  s    u/   ModifiedInterpreter.display_no_subprocess_errorc             C   s    t  j d d d |  j j d  S(   Nu   Already executinguY   The Python Shell window is already executing a command; please wait until it is finished.u   master(   u   tkMessageBoxu	   showerroru	   tkconsoleu   text(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   display_executing_dialog5  s    u,   ModifiedInterpreter.display_executing_dialogNF((   u   __name__u
   __module__u   __qualname__u   __init__u   Noneu   _afteridu   rpccltu
   rpcsubprocu   spawn_subprocessu   build_subprocess_arglistu   start_subprocessu   Falseu   restart_subprocessu'   _ModifiedInterpreter__request_interruptu   interrupt_subprocessu   kill_subprocessu   terminate_subprocessu   transfer_pathu
   active_sequ   poll_subprocessu   debuggeru   setdebuggeru   getdebuggeru   open_remote_stack_vieweru   remote_stack_vieweru   gidu
   execsourceu   execfileu	   runsourceu   stuffsourceu   prepend_syspathu   showsyntaxerroru   showtracebacku   checklinecacheu
   runcommandu   runcodeu   writeu   display_port_binding_erroru   display_no_subprocess_erroru   display_executing_dialog(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   ModifiedInterpreterz  sF   
+.&1u   ModifiedInterpreterc                sL  |  Ee  Z d  Z d e   d Z e Z e Z dV dW dX dY dZ d[ g Z	 e
 j   r^ d\ e	 d] <n  d d l m Z d^ d d  Z d d   Z d_ Z d_ Z d_ Z d_ Z d_ Z d_ Z d d   Z d d   Z d^ d d  Z d d   Z d^ d d   Z d! d"   Z d# d$   Z d% d&   Z d' d(   Z  d) d*   Z! d+ d,   Z" d- d.   Z# d/ d0   Z$ d1 Z% d2 d3   Z& d4 d5   Z' d6 d7   Z( d8 d9   Z) d^ d: d;  Z* d< d=   Z+ d> d?   Z, d@ dA   Z- dB dC   Z. dD dE   Z/ d^ dF dG  Z0 d^ dH dI  Z1 d^ dJ dK  Z2 dL dM   Z3 dN dO   Z4 f  dP dQ  Z5   f dR dS   Z6   f dT dU   Z7   S(`   u   PyShellu   Python u    Shellu   fileu   _Fileu   editu   _Editu   debugu   _Debugu   optionsu   _Optionsu   windowsu   _Windowsu   helpu   _Helpu   _Windowi   i    (   u   Historyc          	   C   s  t  r9 |  j } | d d d k r9 | j d d  q9 n  t |   |  _ | d  k r t   } t |  | j   t	 |  } n  t
 j |  | d  d   d |  _ d |  _ d |  _ |  j } | j d d  | j d |  j  | j d	 |  j  | j d
 |  j  | j d |  j  | j d |  j  | j d |  j  | j d |  j  t  r~| j d |  j  | j d |  j  n  t j |  _ t j |  _  t j! |  _" d d l# m$ } t% |  d | j&  |  _! t' |  d | j&  |  _ t' |  d | j&  |  _ t' |  d | j&  |  _( t  s?|  j t _ |  j t _ |  j! t _! n  y d d  l) } | j* | _+ Wn t j, t _   Yn X|  j- |  j  |  _. d |  _/ d  S(   Ni   i    u   shellu   She_lli   u   wrapu   charu   <<newline-and-indent>>u   <<plain-newline-and-indent>>u   <<interrupt-execution>>u   <<end-of-file>>u   <<open-stack-viewer>>u   <<toggle-debugger>>u   <<toggle-jit-stack-viewer>>u   <<view-restart>>u   <<restart-shell>>(   u	   IOBindingu   stdinu   stdoutu   stderru   consolei2   (   u   shellu   She_llT(0   u   use_subprocessu
   menu_specsu   insertu   ModifiedInterpreteru   interpu   Noneu   Tku   fixwordbreaksu   withdrawu   PyShellFileListu   OutputWindowu   __init__u   Trueu   usetabsu   indentwidthu   context_use_ps1u   textu	   configureu   bindu   enter_callbacku   linefeed_callbacku   cancel_callbacku   eof_callbacku   open_stack_vieweru   toggle_debuggeru   toggle_jit_stack_vieweru   view_restart_marku   restart_shellu   sysu   stdoutu   save_stdoutu   stderru   save_stderru   stdinu
   save_stdinu   idlelibu	   IOBindingu   PseudoInputFileu   encodingu   PseudoOutputFileu   consoleu   pydocu
   plainpageru   pageru
   __stderr__u   Historyu   historyu   pollinterval(   u   selfu   flistu   msu   rootu   textu	   IOBindingu   pydoc(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   __init__V  s\    		

				u   PyShell.__init__c             C   s   t  j d d  S(   Nu
   shell_onlyT(   u   idleConfu   GetExtensionsu   True(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   get_standard_extension_names  s    u$   PyShell.get_standard_extension_namesc             C   s
   | a  d  S(   N(   u   warning_stream(   u   selfu   stream(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   set_warning_stream  s    u   PyShell.set_warning_streamc             C   s   t  S(   N(   u   warning_stream(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   get_warning_stream  s    u   PyShell.get_warning_streamc             C   s`   |  j  r0 t j d d d |  j |  j   d S|  j j   } | rR |  j   n
 |  j   d  S(   Nu   Don't debug nowu*   You can only toggle the debugger when idleu   masteru   break(	   u	   executingu   tkMessageBoxu	   showerroru   textu   set_debugger_indicatoru   interpu   getdebuggeru   close_debuggeru   open_debugger(   u   selfu   eventu   db(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   toggle_debugger  s    		

u   PyShell.toggle_debuggerc             C   s%   |  j  j   } |  j d |  d  S(   Nu   <<toggle-debugger>>(   u   interpu   getdebuggeru   setvar(   u   selfu   db(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   set_debugger_indicator  s    u   PyShell.set_debugger_indicatorc             C   s   d  S(   N(    (   u   selfu   event(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   toggle_jit_stack_viewer  s    u   PyShell.toggle_jit_stack_viewerc             C   s   |  j  j   } | r |  j  j d   | j   |  j  j rQ t j |  j  j  n  |  j   |  j	 j
 d  d t _ |  j   n  |  j   d  S(   Nu   [DEBUG OFF]
u   >>> (   u   interpu   getdebuggeru   setdebuggeru   Noneu   closeu   rpccltu   RemoteDebuggeru   close_remote_debuggeru   resetoutputu   consoleu   writeu   sysu   ps1u
   showpromptu   set_debugger_indicator(   u   selfu   db(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   close_debugger  s    

	u   PyShell.close_debuggerc             C   sq   |  j  j r' t j |  j  j |   } n t j |   } |  j  j |  | j   d t _ |  j	   |  j
   d  S(   Nu   [DEBUG ON]
>>> (   u   interpu   rpccltu   RemoteDebuggeru   start_remote_debuggeru   Debuggeru   setdebuggeru   load_breakpointsu   sysu   ps1u
   showpromptu   set_debugger_indicator(   u   selfu   dbg_gui(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   open_debugger  s    
	
u   PyShell.open_debuggerc             C   s   |  j    d |  _ d S(   u   Helper for ModifiedInterpreteri   N(   u   resetoutputu	   executing(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   beginexecuting  s    
u   PyShell.beginexecutingc             C   s    d |  _  d |  _ |  j   d S(   u   Helper for ModifiedInterpreteri    N(   u	   executingu   canceledu
   showprompt(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   endexecuting  s    		u   PyShell.endexecutingc             C   sf   |  j  r= t j d d d d d |  j } | d k r= d Sn  |  j   d |  _ d |  _ t	 j
 |   S(	   u   Extend EditorWindow.close()u   Kill?u6   The program is still running!
 Do you want to kill it?u   defaultu   oku   parentu   cancelFT(   u	   executingu   tkMessageBoxu   askokcancelu   textu   Falseu   stop_readlineu   Trueu   canceledu   closingu   EditorWindowu   close(   u   selfu   response(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   close  s    	
		u   PyShell.closec             C   s|   |  j    t r  |  j j   n  |  j t _ |  j t _ |  j	 t _
 d |  _ d |  _ d |  j _ d |  _ t j |   d S(   uE   Extend EditorWindow._close(), shut down debugger and execution serverN(   u   close_debuggeru   use_subprocessu   interpu   kill_subprocessu   save_stdoutu   sysu   stdoutu   save_stderru   stderru
   save_stdinu   stdinu   Noneu   consoleu   flistu   pyshellu   historyu   EditorWindowu   _close(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   _close  s    
			u   PyShell._closec             C   s   d S(   u8   Override EditorWindow method: never remove the colorizerT(   u   True(   u   selfu   filename(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   ispythonsource  s    u   PyShell.ispythonsourcec             C   s   |  j  S(   N(   u   shell_title(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   short_title  s    u   PyShell.short_titleu@   Type "copyright", "credits" or "license()" for more information.c             C   s   |  j  j d d  |  j   t rO d } |  j j   } | sa |  j   d Sn d } t j	 t
 _	 |  j d t
 j t
 j |  j | f  |  j   d d  l } d  | _ d S(	   Nu   iomarku   insertu    u   ==== No Subprocess ====u   Python %s on %s
%s
%si    FT(   u   textu   mark_setu   resetoutputu   use_subprocessu   interpu   start_subprocessu   closeu   Falseu   rpcu   displayhooku   sysu   writeu   versionu   platformu	   COPYRIGHTu
   showpromptu   tkinteru   Noneu   _default_rootu   True(   u   selfu   nosubu   clientu   tkinter(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   begin  s     

	
	u   PyShell.beginc             C   s'   |  j  s d  Sd |  _ |  j j   d  S(   NT(   u   readingu   Trueu   _stop_readline_flagu   topu   quit(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   stop_readline  s    		u   PyShell.stop_readlinec             C   s   |  j  } z d |  _  |  j j   Wd  | |  _  X|  j rF d |  _ d S|  j j d d  } t |  d k rv d } n  |  j   |  j	 r d |  _	 t
 s t  q n  |  j r d |  _ d } n  | S(   Ni   u    u   iomarku   end-1ci    u   
F(   u   readingu   topu   mainloopu   _stop_readline_flagu   Falseu   textu   getu   lenu   resetoutputu   canceledu   use_subprocessu   KeyboardInterruptu	   endoffile(   u   selfu   saveu   line(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   readline  s(    		
			
					u   PyShell.readlinec             C   s   d S(   NT(   u   True(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   isatty4  s    u   PyShell.isattyc          
   C   s   y  |  j  j d d d  r d  SWn Yn X|  j p: |  j se |  j   |  j j d  |  j   d Sd |  _ d |  _	 |  j r |  j j
 r |  j j   r |  j j   q |  j j   n  |  j r |  j j   n  d S(   Nu	   sel.firstu   !=u   sel.lastu   KeyboardInterrupt
u   breaki    i   (   u   textu   compareu	   executingu   readingu   resetoutputu   interpu   writeu
   showpromptu	   endoffileu   canceledu   rpccltu   getdebuggeru   restart_subprocessu   interrupt_subprocessu   topu   quit(   u   selfu   event(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   cancel_callback7  s&    

			u   PyShell.cancel_callbackc             C   s   |  j  r |  j r d  S|  j j d d d  oD |  j j d d d  sK d  S|  j  sk |  j   |  j   n d |  _ d |  _ |  j j	   d S(   Nu   iomarku   ==u   insertu   end-1ci    i   u   break(
   u	   executingu   readingu   textu   compareu   resetoutputu   closeu   canceledu	   endoffileu   topu   quit(   u   selfu   event(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   eof_callbackM  s    	
		u   PyShell.eof_callbackc             C   s@   |  j  r/ |  j j d d  |  j j d  n |  j |  d S(   Nu   insertu   
u   break(   u   readingu   textu   insertu   seeu   newline_and_indent_event(   u   selfu   event(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   linefeed_callback\  s
    	u   PyShell.linefeed_callbackc             C   s  |  j  r |  j r d  SyN |  j j d d  } | rd |  j j d d d  rd |  j | |  d Sn  Wn Yn X|  j j d d d  r|  j j d	 d  } | r |  j j d d | d
  r |  j |  j j | d | d
  |  d S|  j j d	 d  } | rL|  j j d d | d  rL|  j |  j j | d | d
  |  d S|  j j d d  } | r|  j j | d d d  r|  j |  j j | d
 d  |  n |  j |  j j d d  |  d S|  j j d d d  r|  j j d d  n  |  j j d d  } | r8| j	   r8|  j j
 d d  n  |  j j d d d  ra|  j |  d S|  j j d d  |  j r|  j j d d  |  j j d  n |  j |  |  j j d	 d d  |  j j   |  j r|  j j   n
 |  j   d S(   Nu	   sel.firstu   sel.lastu   <=u   iomarku   breaku   insertu   <u   iomark linestartu   stdini   i    u   insert lineendu   >=u   consoleu   insert linestartu   end-1cu   end-1c linestartu   
(   u	   executingu   readingu   textu   getu   compareu   recallu   tag_prevrangeu   tag_nextrangeu   mark_setu   stripu   deleteu   newline_and_indent_eventu   insertu   seeu   tag_addu   update_idletasksu   topu   quitu   runit(   u   selfu   eventu   selu   prevu   nextu   indicesu   s(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   enter_callbacke  sX    "'"'&		
u   PyShell.enter_callbackc             C   s  t  j d d |  } t  j d d |  } | j d  } |  j j   zL|  j j d d d  |  j j d d	  |  j j d
 d  } | j   j	 d  r |  j
 |  |  j j d
 d  } n  |  j j d | d j    t |  d k rt  j d | d  j d  } t  j d |  j d  } xd | d d   D]O } | j |  rm| | t |  d   } n  |  j j d d | j    q;Wn  Wd  |  j j d  |  j j   Xd  S(   Nu   ^\s*\nu    u   \n\s*$u   
u   selu   1.0u   endu   insertu   end-1cu   insert linestartu   :i    i   u	   ^([ \t]*)(   u   reu   subu   splitu   textu   undo_block_startu
   tag_removeu   mark_setu   getu   rstripu   endswithu   newline_and_indent_eventu   insertu   stripu   lenu   searchu   groupu
   startswithu   seeu   undo_block_stop(   u   selfu   su   eventu   linesu   prefixu   orig_base_indentu   new_base_indentu   line(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   recall  s*    (u   PyShell.recallc             C   s   |  j  j d d  } t |  } x. | d k rQ | | d d k rQ | d } q$ W| d k r | | d d k r | d } n  x. | d k r | | d d k r | d } q W| d  |  } |  j j |  } d  S(   Nu   iomarku   end-1ci    i   u    	u   
(   u   textu   getu   lenu   interpu	   runsource(   u   selfu   lineu   iu   more(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   runit  s    # #u   PyShell.runitc             C   su   |  j  j r |  j  j   Sy t j Wn% t j d d d |  j d  SYn Xd d l m	 } | |  j
 |  j  } d  S(   Nu   No stack traceu@   There is no stack trace yet.
(sys.last_traceback is not defined)u   masteri    (   u   StackBrowser(   u   interpu   rpccltu   remote_stack_vieweru   sysu   last_tracebacku   tkMessageBoxu	   showerroru   textu   idlelib.StackVieweru   StackBrowseru   rootu   flist(   u   selfu   eventu   StackBrowseru   sv(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   open_stack_viewer  s    	
	u   PyShell.open_stack_viewerc             C   s$   |  j  j d  |  j  j d  d  S(   Nu   iomarku   restart(   u   textu   see(   u   selfu   event(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   view_restart_mark  s    u   PyShell.view_restart_markc             C   s   |  j  j d d  d S(   u&   Callback for Run/Restart Shell Cntl-F6u   with_cwdNT(   u   interpu   restart_subprocessu   True(   u   selfu   event(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   restart_shell  s    u   PyShell.restart_shellc          	   C   sl   |  j    y t t j  } Wn d } Yn X|  j j |  |  j j d d  |  j   |  j	 j
   d  S(   Nu    u   insertu   end-1c(   u   resetoutputu   stru   sysu   ps1u   consoleu   writeu   textu   mark_setu   set_line_and_columnu   iou
   reset_undo(   u   selfu   s(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   showprompt  s    

u   PyShell.showpromptc             C   s   |  j  j d d  } |  j r1 |  j j |  n  |  j  j d  d k r_ |  j  j d d  n  |  j  j d d  |  j   d  S(   Nu   iomarku   end-1cu   end-2cu   
(   u   textu   getu   historyu   storeu   insertu   mark_setu   set_line_and_column(   u   selfu   source(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   resetoutput  s    	u   PyShell.resetoutputc             C   s   t  | t  ry t |  ry t |  d k ry x* t |  D] \ } } | d k r: Pq: q: Wt d | | | d d   n  yB |  j j d d  t j	 |  | | d  } |  j j d d  Wn   Yn X|  j
 r d |  _
 t s t  q n  | S(	   Nu   ￿u   UCS-2i   u%   Non-BMP character not supported in Tku   iomarku   rightu   lefti    (   u
   isinstanceu   stru   lenu   maxu	   enumerateu   UnicodeEncodeErroru   textu   mark_gravityu   OutputWindowu   writeu   canceledu   use_subprocessu   KeyboardInterrupt(   u   selfu   su   tagsu   startu   charu   count(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   write  s"    -		u   PyShell.writec                sF   y  |  j  j d d d  r d SWn t k
 r8 d SYn Xt   j   S(   Nu	   sel.firstu   <u   iomarku   disabled(   u   textu   compareu   TclErroru   superu   rmenu_check_cut(   u   self(   u	   __class__(    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   rmenu_check_cut  s    	u   PyShell.rmenu_check_cutc                s)   |  j  j d d d  r d St   j   S(   Nu   insertu   <u   iomarku   disabled(   u   textu   compareu   superu   rmenu_check_paste(   u   self(   u	   __class__(    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   rmenu_check_paste  s    u   PyShell.rmenu_check_paste(   u   fileu   _File(   u   editu   _Edit(   u   debugu   _Debug(   u   optionsu   _Options(   u   windowsu   _Windows(   u   helpu   _Help(   u   windowsu   _WindowiNF(8   u   __name__u
   __module__u   __qualname__u   python_versionu   shell_titleu   ModifiedColorDelegatoru   ColorDelegatoru   ModifiedUndoDelegatoru   UndoDelegatoru
   menu_specsu   macosxSupportu   runningAsOSXAppu   idlelib.IdleHistoryu   Historyu   Noneu   __init__u   get_standard_extension_namesu   Falseu   readingu	   executingu   canceledu	   endoffileu   closingu   _stop_readline_flagu   set_warning_streamu   get_warning_streamu   toggle_debuggeru   set_debugger_indicatoru   toggle_jit_stack_vieweru   close_debuggeru   open_debuggeru   beginexecutingu   endexecutingu   closeu   _closeu   ispythonsourceu   short_titleu	   COPYRIGHTu   beginu   stop_readlineu   readlineu   isattyu   cancel_callbacku   eof_callbacku   linefeed_callbacku   enter_callbacku   recallu   runitu   open_stack_vieweru   view_restart_marku   restart_shellu
   showpromptu   resetoutputu   writeu   rmenu_check_cutu   rmenu_check_paste(   u
   __locals__(    (   u	   __class__u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   PyShell=  sh   	:	?	u   PyShellc             B   sS   |  Ee  Z d  Z d	 d d  Z e d d    Z e d d    Z d d   Z d	 S(
   u
   PseudoFilec             C   s   | |  _  | |  _ | |  _ d  S(   N(   u   shellu   tagsu	   _encoding(   u   selfu   shellu   tagsu   encoding(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   __init__  s    		u   PseudoFile.__init__c             C   s   |  j  S(   N(   u	   _encoding(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   encoding"  s    u   PseudoFile.encodingc             C   s   d |  j  S(   Nu   <%s>(   u   tags(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   name&  s    u   PseudoFile.namec             C   s   d S(   NT(   u   True(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   isatty*  s    u   PseudoFile.isattyN(	   u   __name__u
   __module__u   __qualname__u   Noneu   __init__u   propertyu   encodingu   nameu   isatty(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   PseudoFile  s   u
   PseudoFilec             B   s,   |  Ee  Z d  Z d d   Z d d   Z d S(   u   PseudoOutputFilec             C   s   d S(   NT(   u   True(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   writable0  s    u   PseudoOutputFile.writablec             C   s}   |  j  r t d   n  t |  t k	 rg t | t  sU t d t |  j   n  t j |  } n  |  j j	 | |  j
  S(   Nu   write to closed fileu   must be str, not (   u   closedu
   ValueErroru   typeu   stru
   isinstanceu	   TypeErroru   __name__u   __str__u   shellu   writeu   tags(   u   selfu   s(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   write3  s    	u   PseudoOutputFile.writeN(   u   __name__u
   __module__u   __qualname__u   writableu   write(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   PseudoOutputFile.  s   u   PseudoOutputFilec             B   sY   |  Ee  Z d  Z d d d  Z d d   Z d d d  Z d d d	  Z d
 d   Z d S(   u   PseudoInputFilec             C   s#   t  j |  | | |  d |  _ d  S(   Nu    (   u
   PseudoFileu   __init__u   _line_buffer(   u   selfu   shellu   tagsu   encoding(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   __init__@  s    u   PseudoInputFile.__init__c             C   s   d S(   NT(   u   True(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   readableD  s    u   PseudoInputFile.readablei   c             C   s  |  j  r t d   n  | d  k r- d } n+ t | t  sX t d t |  j   n  |  j } d |  _ | d k  r x |  j	 j
   } | s Pn  | | 7} qy n_ x9 t |  | k  r |  j	 j
   } | s Pn  | | 7} q W| | d   |  _ | d  |  } | S(   Nu   read from closed filei   u   must be int, not u    i    i(   u   closedu
   ValueErroru   Noneu
   isinstanceu   intu	   TypeErroru   typeu   __name__u   _line_bufferu   shellu   readlineu   len(   u   selfu   sizeu   resultu   line(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   readG  s,    				  u   PseudoInputFile.readc             C   s   |  j  r t d   n  | d  k r- d } n+ t | t  sX t d t |  j   n  |  j pm |  j	 j
   } | d k  r t |  } n  | j d d |  } | d k r | d } n  | | d   |  _ | d  |  S(   Nu   read from closed filei   u   must be int, not i    u   
i(   u   closedu
   ValueErroru   Noneu
   isinstanceu   intu	   TypeErroru   typeu   __name__u   _line_bufferu   shellu   readlineu   lenu   find(   u   selfu   sizeu   lineu   eol(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   readline^  s    		u   PseudoInputFile.readlinec             C   s   |  j  j   d  S(   N(   u   shellu   close(   u   self(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   closen  s    u   PseudoInputFile.closeNii(	   u   __name__u
   __module__u   __qualname__u   Noneu   __init__u   readableu   readu   readlineu   close(   u
   __locals__(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   PseudoInputFile>  s
   u   PseudoInputFileu  
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                 s  t  d+  d+ a d, }  d, } d, } d  } d  } d, } y) t j t j d d   d  \ } } Wn_ t j k
 r } z< t j	 j
 d t |   t j	 j
 t  t j d  WYd  d  } ~ Xn Xx2| D]*\ }	 }
 |	 d k r |
 } d+ }  n  |	 d k rd+ } d+ }  n  |	 d k rd+ } n  |	 d k rFt j j
 t  t j   n  |	 d	 k r[d+ }  n  |	 d
 k rpd, a n  |	 d k r|
 } t j j |  rn t d |  t j   d+ }  n  |	 d k rd+ } d+ }  n  |	 d k r |
 t _ d+ }  q q W| r"| d d k r"t j j   } d+ }  n  x= t t t j   D]& } t j j t j |  t j | <q8W| r| d d k rd g | d d   t _ n | rd g | t _ n | r| g | t _ n | rNd+ } g  } x' | D] } | j t j j |   qWxy | D]= } t j j |  } | t j k r
t j j d |  q
q
Wn1 t j   } | t j k rt j j d |  n  t j d d d d d } | p| } |  p| }  t  d d  a! t j j" t j j t#  d   t$   d k rt j j"  d  } t! j% d |  nf t& d k rt& d k r8d n d       f d! d"   d- D } d& d"   | D } t! j' d+ |  n  t( t!  t! j)   t* t!  a+ t, j- t! t+  | r| p| sx= | d  d   D]+ } t+ j. |  d  k r| j/ |  qqW| st+ j0   qqn  |  r_t+ j1   } | s7d  St, j2   rht+ j3 rh| j4 j5   qhn	 t+ j6 } | r{| j7   n  | rt j8 j9 d'  pt j8 j9 d(  } | rt j j |  r| j: j; |  qn  | s| r>| j: j< d) t j f  | r| j: j= |  qs| rs| j: j> |  | j: j; |  qsn5 | rst, j? t!  } | rs| j: j< d* |  qsn  x t+ j@ rt! jA   qvWt! jB   t  d,  d  S(.   Ni   u   c:deihnr:st:u
   Error: %s
i   u   -cu   -du   -eu   -hu   -iu   -nu   -ru   No script file: u   -su   -ti    u   -u    u   mainu   Generalu   editor-on-startupu   typeu   boolu	   classNameu   Idleu   Iconsu   Windowsu   idle.icou   defaultg      !@g333333!@u   .pngu   .gifc                s/   g  |  ]% } t  j j  d  |   f   q S(   u	   idle_%d%s(   u   osu   pathu   join(   u   .0u   size(   u   extu   icondir(    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   <listcomp>  s   	u   main.<locals>.<listcomp>i   i    i0   c             S   s   g  |  ] } t  d  |   q S(   u   file(   u
   PhotoImage(   u   .0u   iconfile(    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu
   <listcomp>   s   	 u   IDLESTARTUPu   PYTHONSTARTUPub   if 1:
            import sys as _sys
            _sys.argv = %r
            del _sys
            
u   print('%s')TF(   i   i    i0   (C   u   capture_warningsu   Trueu   use_subprocessu   Falseu   Noneu   getoptu   sysu   argvu   erroru   stderru   writeu   stru	   usage_msgu   exitu   stdoutu   osu   pathu   isfileu   printu   PyShellu   shell_titleu   stdinu   readu   rangeu   lenu   abspathu   appendu   dirnameu   insertu   getcwdu   idleConfu	   GetOptionu   Tku   rootu   joinu   __file__u   systemu   wm_iconbitmapu	   TkVersionu   wm_iconphotou   fixwordbreaksu   withdrawu   PyShellFileListu   flistu   macosxSupportu   setupAppu   openu   removeu   newu
   open_shellu   runningAsOSXAppu   dictu   topu   loweru   pyshellu   open_debuggeru   environu   getu   interpu   execfileu
   runcommandu
   execsourceu   prepend_syspathu   tkVersionWarningu   inversedictu   mainloopu   destroy(   u   enable_shellu   enable_editu   debugu   cmdu   scriptu   startupu   optsu   argsu   msgu   ou   au   iu   pathxu   filenameu   diru
   edit_startu   iconfileu	   iconfilesu   iconsu   shellu   tkversionwarning(    (   u   extu   icondiru4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   main  s    
) 					
				$!


		
u   mainu   __main__(K   u   getoptu   osu   os.pathu   reu   socketu
   subprocessu   sysu	   threadingu   timeu   tokenizeu	   tracebacku   typesu   iou	   linecacheu   codeu   InteractiveInterpreteru   platformu   python_versionu   systemu   tkinteru   ImportErroru   printu
   __stderr__u   exitu   tkinter.messageboxu
   messageboxu   tkMessageBoxu   idlelib.EditorWindowu   EditorWindowu   fixwordbreaksu   idlelib.FileListu   FileListu   idlelib.ColorDelegatoru   ColorDelegatoru   idlelib.UndoDelegatoru   UndoDelegatoru   idlelib.OutputWindowu   OutputWindowu   idlelib.configHandleru   idleConfu   idlelibu   idleveru   rpcu   Debuggeru   RemoteDebuggeru   macosxSupportu   HOSTu   PORTu   warning_streamu   warningsu   Noneu   idle_formatwarningu   idle_showwarningu   _warnings_showwarningu   capture_warningsu   Trueu
   checkcacheu   extended_linecache_checkcacheu   PyShellEditorWindowu   PyShellFileListu   ModifiedColorDelegatoru   ModifiedUndoDelegatoru	   RPCClientu   MyRPCClientu   ModifiedInterpreteru   PyShellu
   TextIOBaseu
   PseudoFileu   PseudoOutputFileu   PseudoInputFileu	   usage_msgu   mainu   __name__u   modulesu   False(    (    (    u4   /opt/alt/python33/lib64/python3.3/idlelib/PyShell.pyu   <module>   s~   	
	
	  g
