ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
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
103
[\¬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Ñ|ayttjdƒ}WntjdIJdSXdgtj(tjdtdddt|ffƒ}|j    t
ƒ|j ƒxJy¢t r±y t ƒWq±tk
r­wƒq±Xny%tjjd    t
d
d ƒ\}}Wntjk
rïwƒnX|\}}}|||Ž}tjj||fƒWqƒtk
rJtrƒt
a qƒqƒqƒtk
r]‚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.
 
    iÿÿÿÿs/IDLE Subprocess: no IP port passed in sys.argv.Ntttargettnamet
SockThreadtargstblockttimeoutgš™™™™™©?tfile(t no_exitfunctinttsystargvtstderrt    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.pytmain4sR   
 
%       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    MyHandlertsocketterrorRR6Rtshow_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(RORLRQRRtroottmsg((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyRJŠ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 R3t    last_typet
last_valuetlast_tracebackR5t
extract_tbtcleanup_tracebackt
print_listtformat_exception_only(
R    tefilettyptvalRAtexcinfottbetexcludetlinesR((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyR4š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(
tcounttlenRR Rt objecttablet
rpchandlerRCt
startswitht
remotecall(
RARgtorig_tbtrpcfileRnRMtfntlntnmR((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyR_«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.pyRZÊ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(RRtexitfuncRyR)(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyR)Òs 
 RFcBseZd„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(R2RzR&R(tthreadtinterrupt_mainRR6R!t currentThreadtgetNametreprR5t    print_excR1(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.pyRFàsRGcBs,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 methodRitconsoletstdinRvR tinterptmyseqtwaitgš™™™™™©?N(t    Executivetregistertget_remote_proxyRˆRtPseudoInputFileRtencodingRR‰tPseudoOutputFileRvR 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(RDRE(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&R1R}R~(Rƒ((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pytEOFhookscCstatjƒdS(sinterrupt awakened threadN(R&R1R}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.pyRGþs            RcBsSeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Z
RS(    cCs7||_tj|_tjƒ|_tjƒ|_dS(N(Rnt__main__t__dict__tlocalsRtcalltipRt autocomplete(RƒRn((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tFalseR2RR3R1R)R4RnRˆtgetvarRŠtopen_remote_stack_viewerRZ(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_debuggerRn(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(Rnt
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¡RRnRttb_framet    f_globalsttb_nextRR[R\Rt StackTreeItemRtremote_object_tree_item(Rƒt    flist_oidRcRdRAtflisttitem((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    RDRHR5R}R!R-tidlelibRRRRRRRRR›R$twarningst ImportErrorRRt formatwarningR£R(R1R¢RBR#RJR4R_RZR)t    RPCServerRFR”RGtobjectR(((sS/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/run.pyt<module>sJ                D                        &