tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[\¬Qc@s×ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    m
Z
ddl    m Z ddl    m Z ddl    m Z ddl    mZddl    mZddl    mZdd    l    mZddlZd
ZyddlZWnek
r!nXdd „Zee_eaeaeaed „Zd „Zd„Zd„Z d„Z!d„Z"d„Z#dej$fd„ƒYZ%dej&fd„ƒYZ'de(fd„ƒYZ)dS(iÿÿÿÿN(tCallTips(t AutoComplete(tRemoteDebugger(tRemoteObjectBrowser(t StackViewer(trpc(tPyShell(t    IOBindings    127.0.0.1cCsyd}|d||f7}|dkr;tj||ƒ}n|jƒ}|r^|d|7}n|d|j|f7}|S(sFormat warnings the IDLE ways!
Warning (from warnings module):
s  File "%s", line %s
s    %s
s%s: %s
N(tNonet    linecachetgetlinetstript__name__(tmessagetcategorytfilenametlinenotlinets((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytidle_formatwarning_subprocs  c Csì|ay2ttjƒdks$t‚ttjdƒ}WntjdIJdSXdgtj(tjdt    ddd    t
|ffƒ}|j t ƒ|j ƒxJy¢trÌy tƒWqÌtk
rÈwžqÌXny%tjjd
t d d ƒ\}}Wntjk
r
wžnX|\}}}|||Ž}tjj||fƒWqžtk
retržt aqžqžqžtk
rx‚qžtjƒ\}    }
} y!tƒtjj|dfƒWqžtj|    |
| d tjƒtƒqåXqžqžXqždS(sjStart the Python execution server in a subprocess
 
    In the Python subprocess, RPCServer is instantiated with handlerclass
    MyHandler, which inherits register/unregister methods from RPCHandler via
    the mix-in class SocketIO.
 
    When the RPCServer 'server' is instantiated, the TCPServer initialization
    creates an instance of run.MyHandler and calls its handle() method.
    handle() instantiates a run.Executive object, passing it a reference to the
    MyHandler object.  That reference is saved as attribute rpchandler of the
    Executive instance.  The Executive methods have access to the reference and
    can pass it on to entities that they command
    (e.g. RemoteDebugger.Debugger.start_debugger()).  The latter, in turn, can
    call MyHandler(SocketIO) register/unregister methods via the reference to
    register and unregister themselves.
 
    iiÿÿÿÿs/IDLE Subprocess: no IP port passed in sys.argv.Ntttargettnamet
SockThreadtargstblockttimeoutgš™™™™™©?tfile(t no_exitfunctlentsystargvtAssertionErrortinttstderrt    threadingtThreadt manage_sockett    LOCALHOSTt    setDaemontTruetstarttexit_nowtexittKeyboardInterruptRt request_queuetgettQueuetEmptytresponse_queuetputtquittingt
SystemExittexc_infotprint_exceptionRt    tracebackt
__stderr__( t del_exitfunctportt
sockthreadtseqtrequesttmethodRtkwargstretttypetvaluettb((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytmain4sT   
 
%       cCsŸxŽtdƒD]\}tj|ƒyt|tƒ}PWq tjk
rh}tjd|j    ddIJq Xq WtjdIJt
||ƒt a dS|j ƒdS(NisIDLE Subprocess: socket error: is, retrying....s8IDLE Subprocess: Connection to IDLE GUI failed, exiting.(trangettimetsleept MyRPCServert    MyHandlertsocketterrorRR8Rtshow_socket_errorR(R*thandle_request(taddresstitserverterr((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyR%xs   cCsddl}ddl}|jƒ}|jƒ|jddkrdd|}|jd|d|ƒn|jdd|jdƒ|jƒdS(    Niÿÿÿÿii=s¿IDLE's subprocess can't connect to %s:%d.  This may be due to your personal firewall configuration.  It is safe to allow this internal connection because no data is visible on external ports.sIDLE Subprocess ErrortparentsSocket Error: %si(tTkintert tkMessageBoxtTktwithdrawRt    showerrortdestroy(RQRNRSRTtroottmsg((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyRLŠs   
    c
CsÇddl}|jƒtƒtj}tjƒ\}}}}|\t_t_t_t    j
|ƒ}|dIJd
}t ||ƒt    j |d    |ƒt    j ||ƒ}x|D]}    ||    Iq¯WdS( Niÿÿÿÿs#
Traceback (most recent call last):srun.pysrpc.pys threading.pysQueue.pysRemoteDebugger.pysbdb.pyR(srun.pysrpc.pys threading.pysQueue.pysRemoteDebugger.pysbdb.py(R    t
checkcachet flush_stdoutRR"R5t    last_typet
last_valuetlast_tracebackR7t
extract_tbtcleanup_tracebackt
print_listtformat_exception_only(
R    tefilettyptvalRCtexcinfottbetexcludetlinesR((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyR6šs 
    
  c
Cs\|}x>|rGx*|D]!}|ddj|ƒrPqqWP|d=q
Wx>|rˆx*|D]!}|ddj|ƒrXPqXqXWP|d=qKWt|ƒdkr³||(tjdIJntjdj}x’tt|ƒƒD]~}||\}}}}    |dkrd}n|     r>|jdƒr>|j    dd    ||fiƒ}    n||||    f||<qÖWd
S( sARemove excluded traces from beginning/end of tb; get cached linesiiÿÿÿÿs** IDLE Internal Exception: texect?s
-toplevel-s    <pyshell#R    R
N(
tcountRRR"Rt objecttablet
rpchandlerREt
startswitht
remotecall(
RCRitorig_tbtrpcfileRoROtfntlntnmR((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyRa«s2                  cCsMy/tjjr.dtj_tjjdƒnWnttfk
rHnXdS(Nis
(Rtstdoutt    softspacetwritetAttributeErrortEOFError(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyR\Ês   cCs8tr'y
t`Wq'tk
r#q'XntjdƒdS(sÐExit subprocess, possibly after first deleting sys.exitfunc
 
    If config-main.cfg/.def 'General' 'delete-exitfunc' is True, then any
    sys.exitfunc will be removed before exiting.  (VPython support)
 
    iN(RRtexitfuncRzR+(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyR+Òs 
 RHcBseZd„ZRS(cCsåy‚Wn×tk
r‚nÄtk
r=tatjƒn¤tj}|dddIJ|dIJ|dtj    ƒj
ƒIJ|dI|IJ|dIt |ƒIJt j d|ƒ|d    IJ|ddIJtatjƒnXd
S( srOverride RPCServer method for IDLE
 
        Interrupt the MainThread and exit server if link is dropped.
 
        s
t-i(sUnhandled server exception!s
Thread: %ssClient Address: s    Request: Rs#
*** Unrecoverable, server exiting!N(R4R{R(R*tthreadtinterrupt_mainRR8R#t currentThreadtgetNametreprR7t    print_excR3(tselfR=tclient_addressterf((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyt handle_errorâs&       
 
(R t
__module__R‡(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyRHàsRIcBs,eZd„Zd„Zd„Zd„ZRS(cCsÆt|ƒ}|jd|ƒ|jdƒ|_tj|jdtjƒt_    tj
|jdtjƒt_ tj
|jdtjƒt_ tj    |_ |jdƒ|_tjj|dd
dd    ƒd
S( sOverride base methodRktconsoletstdinRwR"tinterptmyseqtwaitgš™™™™™©?N(t    Executivetregistertget_remote_proxyR‰RtPseudoInputFileRtencodingRRŠtPseudoOutputFileRwR"t _keep_stdinR‹Rt
RPCHandlert getresponseR(R„t    executive((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pythandles  cCstjdƒdS(s>override SocketIO method - wait for MainThread to shut us downi
N(RFRG(R„((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytexithookscCstatjƒdS(sEOverride SocketIO method - terminate wait on callback and exit threadN(R(R3R~R(R„((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytEOFhookscCstatjƒdS(sinterrupt awakened threadN(R(R3R~R(R„((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytdecode_interrupthooks(R RˆR˜R™RšR›(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyRIþs            RŽcBsSeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Z
RS(    cCs7||_tj|_tjƒ|_tjƒ|_dS(N(Rot__main__t__dict__tlocalsRtcalltipRt autocomplete(R„Ro((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyt__init__&s     cBs¥y,d|_eaz||jUWdeaXWnkek
r?nbejƒ|_e    rae
ƒne ƒ|j j jdƒ}|r¡|j jjƒq¡nXeƒdS(Ns<<toggle-jit-stack-viewer>>(Rt usr_exc_infoR(t interruptableRžtFalseR4RR5R3R+R6RoR‰tgetvarR‹topen_remote_stack_viewerR\(R„tcodetjit((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytruncode,s"      
cCstrtjƒndS(N(R£R~R(R„((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytinterrupt_the_serverDscCstj|j|ƒS(N(Rtstart_debuggerRo(R„t gui_adap_oid((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytstart_the_debuggerHscCs|jj|ƒdS(sDUnregister the Idb Adapter.  Link objects and Idb then subject to GCN(Rot
unregister(R„t idb_adap_oid((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytstop_the_debuggerKscCs|jj|ƒS(N(RŸt    fetch_tip(R„R((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytget_the_calltipOscCs|jj||ƒS(N(R tfetch_completions(R„twhattmode((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytget_the_completion_listRscCs¦|jr|j\}}}ndSd}|dk    rI|jj|ƒ}nx)|rt|jjddkrt|j}qLW|t_|t_    t
j ||ƒ}t j |ƒS(NR Rtrun(srpcR·(R¢RRoRttb_framet    f_globalsttb_nextRR]R^Rt StackTreeItemRtremote_object_tree_item(R„t    flist_oidReRfRCtflisttitem((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyt stackviewerUs              N( R RˆR¡R©RªR­R°R²R¶RRÀ(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyRŽ$s                            (*RtioR    RFRJR7R~R#R/tidlelibRRRRRRRRRœR&twarningst ImportErrorRRt formatwarningR¤R*R3R£RDR%RLR6RaR\R+t    RPCServerRHR•RItobjectRŽ(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyt<module>sJ                D                        &