zfc@s8dZdZdZdZdZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlmZddlmZmZmZmZmZmZmZmZdd lmZydd lmZWn'ek r!d efd YZnXd ZdZ dZ!dZ"dZ#dZ$dZ%ej&dej'Z(dZ)dZ*dZ+dZ,e-e-dZ.dZ/y e0Z1Wn9e2k rde3fdYZ1dZ4ddZ5n%Xddl6Z6e6j7Z4e-dZ5d Z8d!Z9d"Z:id#Z;d$e<fd%YZ=d&Z>d'id(Z?d)fd*YZ@d+efd,YZAd-e@fd.YZBd/efd0YZCd1e@fd2YZDd3aEd4ZFd5ZGd6ZHd7ZId8ZJd9ZKd:ZLd'd;ZMeDZNeBZOd<fd=YZPeQePZRd'd>ZSd?d'd@ZTd?d'dAZUd'dBZVdCe-dDZWdEfdFYZXeXZYdGfdHYZZdIfdJYZ[dKZ\e-e-dLZ]dMZ^dNZ_dOZ`eadPkr4e`ndS(QsGenerate Python documentation in HTML or text for interactive use. In the Python interpreter, do "from pydoc import help" to provide online help. Calling help(thing) on a Python object documents the object. Or, at the shell command line outside of Python: Run "pydoc " to show documentation on something. may be the name of a function, module, package, or a dotted reference to a class or function within a module or module in a package. If the argument contains a path segment delimiter (e.g. slash on Unix, backslash on Windows) it is treated as the path to a Python source file. Run "pydoc -k " to search for a keyword in the synopsis lines of all available modules. Run "pydoc -p " to start an HTTP server on a given port on the local machine to generate documentation web pages. Port number 0 can be used to get an arbitrary unused port. Run "pydoc -w " to write out the HTML documentation for a module to a file named ".html". Module docs for core modules are assumed to be in https://docs.python.org/library/ This can be overridden by setting the PYTHONDOCS environment variable to a different URL or to a local directory containing the Library Reference Manual pages. sKa-Ping Yee s26 February 2001s$Revision: 88564 $sGuido van Rossum, for an excellent programming language. Tommy Burnette, the original creator of manpy. Paul Prescod, for all his work on onlinehelp. Richard Chamberlain, for the first implementation of textdoc. iN(tRepr(t expandtabstfindtjointlowertsplittstriptrfindtrstrip(t extract_tb(tdequeR cBseZdZRS(cCs |jdS(Ni(tpop(tself((s/usr/lib64/python2.7/pydoc.pytpopleft>s(t__name__t __module__R (((s/usr/lib64/python2.7/pydoc.pyR =scCsg}g}xvtjD]k}tjj|p.d}tjj|}||krtjj|r|j||j|qqW|S(sAConvert sys.path into a list of absolute, existing, unique paths.t.(tsystpathtostabspathtnormcasetisdirtappend(tdirstnormdirstdirtnormdir((s/usr/lib64/python2.7/pydoc.pytpathdirsCs cCsOtj|ptj|}t|}|rKtjddt|pNdS(s-Get the doc string or comments for an object.s^ * t(tinspecttgetdoct getcommentst_encodetretsubR(tobjecttresult((s/usr/lib64/python2.7/pydoc.pyROs cCstt|d}t|dkr5|ddfSt|dkrst|d rs|dt|ddfSdt|dfS(s>Split a doc string into a synopsis line (if any) and the rest.s iiRi(RRtlenRR(tdoctlines((s/usr/lib64/python2.7/pydoc.pytsplitdocUs #cCs0|j}|j|kr,|jd|}n|S(s@Get a class name and qualify it with a module name if necessary.R(RR(R$tmodnametname((s/usr/lib64/python2.7/pydoc.pyt classname^s cCsYtj|pWtj|pWtj|pWtj|pWtj|pWtj| S(s>Check if an object is of a type that probably means it's data.(Rtismoduletisclasst isroutinetisframet istracebacktiscode(R$((s/usr/lib64/python2.7/pydoc.pytisdataescGs;x4|r6tt||d|d}|d}qW|S(s/Do a series of global replacements on a string.iii(RR(ttexttpairs((s/usr/lib64/python2.7/pydoc.pytreplaceks  cCsbt||kr^td|dd}td|d|}|| d|t||S|S(sCOmit part of a string if needed to make it fit in a maximum length.iiis...(R&tmax(R4tmaxlentpretpost((s/usr/lib64/python2.7/pydoc.pytcramrs s at 0x[0-9a-f]{6,16}(>+)$cCstjd|S(s>Remove the hexadecimal id from a Python object representation.s\1(t _re_stripidR#(R4((s/usr/lib64/python2.7/pydoc.pytstripid{scCstj|ptj|S(N(Rtismethodtismethoddescriptor(tobj((s/usr/lib64/python2.7/pydoc.pyt_is_some_methodscCsi}x*tj|tD]\}}d||s>(R6(R R4((s/usr/lib64/python2.7/pydoc.pytescapescCstj||S(N(RR(R R$((s/usr/lib64/python2.7/pydoc.pyRscCstt|dr_dttt|jd}t||r_t||||Sn|jttt ||j S(NRtrepr_RZ( R^RRRRRGRR;R=RR(R RQtlevelt methodname((s/usr/lib64/python2.7/pydoc.pytrepr1s "cCst||j}t|}d|krcdt|ddkrcd|d|j||dStjdd|j|S(Ns\s\\RRis-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)s\1(R;RRR6RR"R#(R RQRttestttestrepr((s/usr/lib64/python2.7/pydoc.pyt repr_strings $! cCsKy)|jttt||jSWn|jd|jjSXdS(Ns <%s instance>(RR;R=RRt __class__R(R RQR((s/usr/lib64/python2.7/pydoc.pyt repr_instances)( RRRTRtRRRRtrepr_strRt repr_unicode(((s/usr/lib64/python2.7/pydoc.pyRs      tHTMLDoccBsOeZdZeZejZejZdZddZdddddZ dZ dZ d d Z d Zd Zd ZdZdZdiiidZddZdddZddiidZdZddiiiddZdZddddZdddZddddZddZRS(s'Formatter class for HTML documentation.cCstd||fdS(sFormat an HTML page.s Python: %s %s Rk(R!(R ttitletcontents((s/usr/lib64/python2.7/pydoc.pytpagesRcCsd|||||pdfS(sFormat a page heading.s'
 
 
%s
%s
s ((R Rtfgcoltbgcoltextras((s/usr/lib64/python2.7/pydoc.pytheadings is c Csz|dkr!dd|d}nd|||f} |rW| d||||f} n| d|||f} | d|S( s Format a section with a heading.ss ss

sR s( s'
 
%s
%s %s
%s
%s%s%s
N(R_( R RRRRtwidthtpreludet marginaliatgapR%((s/usr/lib64/python2.7/pydoc.pytsections cGsd|}|j||S(s$Format a section with a big heading.s%s(R(R RR((s/usr/lib64/python2.7/pydoc.pyt bigsections c Cs7|jt|}t|dddddddd S(s!Format literal preformatted text.s s Rs s s
(RRR6(R R4((s/usr/lib64/python2.7/pydoc.pyt preformatsicCsd}t||d|}xt|D]u}|dd|}xPt|||||D]3}|t|kr_||||d}q_q_W|d}q+Wd|S(s0Format a list of items into a multi-column list.Risids
ss7%s
(R&trange(R tlisttformattcolsR%trowstcolti((s/usr/lib64/python2.7/pydoc.pyt multicolumns"cCsd|S(Ns%s((R R4((s/usr/lib64/python2.7/pydoc.pytgrey RcGs3x,|D]$}||krd|||fSqW|S(s:Make a link for an identifier, given name-to-URL mappings.s%s((R R+tdictstdict((s/usr/lib64/python2.7/pydoc.pytnamelink s  cCsm|jtjj|j}}t||r`t|||kr`d|j|t||fSt||S(sMake a link for a class.s%s(RRRRRR^RGR,(R R$R*R+R((s/usr/lib64/python2.7/pydoc.pyt classlinks $cCsd|j|jfS(sMake a link for a module.s%s(R(R R$((s/usr/lib64/python2.7/pydoc.pyt modulelinkscCso|\}}}}|r%|j|S|r>d||f}n d|}|r[d|}n|}d||fS(s;Make a link for a module or package to display in an index.s %s.%s.htmls%s.htmls"%s (package)s%s(R(R RdR+RRytshadowedturlR4((s/usr/lib64/python2.7/pydoc.pyt modpkglinks   cCs|p |j}g}d}tjd}xtr|j||} | sOPn| j\} } |j|||| !| j\} } }}}}| r|| jdd}|jd||fn|rdt |}|jd||| fn|r=dt |}|jd||| fn|r|| | d!d krz|jd |j ||q|jd |nR|| | d!d kr|j|j ||||n|j|j ||| }q-W|j|||t |d S( sMark up some plain text, given a context of symbols to look for. Each context dictionary maps object names to anchor names.isD\b((http|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))t"s"s%ss'http://www.rfc-editor.org/rfc/rfc%d.txts(http://www.python.org/dev/peps/pep-%04d/it(sself.sself.%sR( RR"tcompileRvtsearchtspanRtgroupsR6tintRR(R R4RtfuncstclassesRItresultstheretpatterntmatchtstarttendR`tschemetrfctpeptselfdotR+R((s/usr/lib64/python2.7/pydoc.pytmarkup-s<    " c Cs d}x|D]}t|td kr|\}}|d}||j||}|r||fkrg}x'|D]} |j|j| |qyW|dt|dd}n|d}q t|tgkr |d|j|||}q q Wd|S( sAProduce HTML for a class tree as given by inspect.getclasstree().Rs"

Rs, t)s
s
%s
s
%s
((RRRRt formattree( R ttreeR*tparentR%tentrytctbasestparentsRL((s/usr/lib64/python2.7/pydoc.pyRXs       c$Gs|j}y |j}Wntk r/d}nXt|d}g}xJtt|dD]2}|jdt||d d||fq\Wt||dd} d| } yVt j |} | } t j dkrddl } | j| } nd| | f}Wntk r"d }nXg}t|d rt|j}|d d.kr}|dd kr}t|d d!}n|jd|j|nt|dr|j|jt|jn|r| dt|d} n|j|}|dk rdt}nd}|j| ddd||}t j|t j}gi}}xt j|t jD]t\}}|dk st j|p||krtt|||r|j||fd|||<||%sis)%stwin32Ns%ss (built-in)t __version__i t$s Revision: s version %st__date__s (%s)s, s(
Module DocsRs#ffffffs#7799eesindex
Rzs.html#s#-s %ss

%s

RVisPackage Contentss#aa55cccSs|j|dS(Ni(R(t key_valueRM((s/usr/lib64/python2.7/pydoc.pytRtModulescSs|dS(Ni((R'((s/usr/lib64/python2.7/pydoc.pyR(RtClassess#ee77aat Functionss#eeaa77tDatas#55aa55s
t __author__tAuthort __credits__tCreditss $Revision: (7Rt__all__RR_RRR&RRRRRtplatformt nturl2patht pathname2urlRR^RsR$RRR&RtlocalsRRBR-R.t getmoduleRbRCRRRRGR/t isbuiltint isfunctionR3RRRtpkgutilt iter_modulesRVtsortRRRRhRt getclasstreeRR-R/($R R$R+tmodtignoredR`tpartstlinksRt linkednametheadRRR3tfilelinkRRRR%RRtcdictRJRKRLR*RRtfdictRdR'tmodpkgstimportertispkgRt classlist((s/usr/lib64/python2.7/pydoc.pyRks    '     "   "  ! + " $!"   !& &    cs j}|p|}j}g} | jdd(fdY} | ttj} t| dkrjdx+| D]#} dj| j qWdnfd} fd}fd }t fd t }ix}|D]u\}}}}d |d ||<}yt |}Wnt k rnXy|| i(RK(R (tpush(s/usr/lib64/python2.7/pydoc.pytmaybes  (RRRtRM((RL(s/usr/lib64/python2.7/pydoc.pyRJs is&
Method resolution order:
s
%s
s
c st||\}}|rj|x|D]\}}}}yt|}Wn*tk rj||n&Xj||dq6Wn|S(Ns (RRRMRGt Exceptiont_docdescriptorR(tmsgtattrsRNtokR+RethomeclsRK(RRthrtmdictR=R$RLR (s/usr/lib64/python2.7/pydoc.pytspills   cslt||\}}|rhj|x6|D]+\}}}}j||q6Wn|S(N(RRRMRO(RPRQRNRRR+ReRSRK(RTR=RLR (s/usr/lib64/python2.7/pydoc.pytspilldescriptorss   c st||\}}|rj|x|D]\}}}}jt||}t|dstj|rt|dd} nd} | dkrd|nBjt |j } d| } d|| fdq6Wn|S(Nt__call__RTs
%s
s
%ss
%s%s
s ( RRRMRRGR^RRcR_RRR( RPRQRNRRR+ReRSRKRLR'(RRRTRUR=R$RLR (s/usr/lib64/python2.7/pydoc.pyt spilldata s$    cst|ddS(NiR@(Rb(Rd(R$(s/usr/lib64/python2.7/pydoc.pyR(6RRzt-ics|dkS(Ni((tt(t thisclass(s/usr/lib64/python2.7/pydoc.pyR(MRs defined heresinherited from %ss:
RJcSs|dS(Ni((R[((s/usr/lib64/python2.7/pydoc.pyR([RcSst|d|dS(Ni(tcmp(tt1tt2((s/usr/lib64/python2.7/pydoc.pyR(]Rs Methods %scSs|ddkS(Nitmethod((R[((s/usr/lib64/python2.7/pydoc.pyR(aRsClass methods %scSs|ddkS(Nis class method((R[((s/usr/lib64/python2.7/pydoc.pyR(cRsStatic methods %scSs|ddkS(Nis static method((R[((s/usr/lib64/python2.7/pydoc.pyR(eRsData descriptors %scSs|ddkS(Nisdata descriptor((R[((s/usr/lib64/python2.7/pydoc.pyR(gRsData and other attributes %scSs|ddkS(NiRd((R[((s/usr/lib64/python2.7/pydoc.pyR(iRRs*class %ss/%s = class %ss(%s)s, s%s
 
s#000000s#ffc8d8i((RRCRR RtgetmroR&RMRRtfilterRiRGRNRR RRt __builtin__R$R;RRRRR(R R$R+R=RRR>trealnameR!RRJtmroRLRVRWRYRQRJReRSRKtanchort inheritedttagRR"R'(( RRRTRUR=R$RLR R\s/usr/lib64/python2.7/pydoc.pyRs         $ $                       $cCs|jd|j|S(s)Format an argument default value as text.t=(RR(R R$((s/usr/lib64/python2.7/pydoc.pyt formatvaluescCsG|j}|p|}|r$|jp'dd|} d} d} tj|r|j} |r| |k rd|j| |} qnD|jdk rd|j|jj|} nd|j| |} |j}n||krd| |f} ne|r?||j kr?|j ||kr?d|jd||f}d } n|}d | ||f} tj |rtj |\}}}}tj ||||d |j }|d krd |} |d d!}qnd}| || o|jd| }| rd|S|jt||j|||}|o2d|}d||fSdS(s;Produce HTML documentation for a function or method object.RRZis from s method of %s instances unbound %s methods$%ss%sis)%s = %sRjss$%s lambda is(...)s'%ss
%s
s
%s
s
%s
%s
N(RRR>tim_classRtim_selfR_Rtim_funct__dict__R8t getargspect formatargspecRjRRRR(R R$R+R=RRRIRHRdRftnotetskipdocstimclassRtreallinkRtvarargstvarkwtdefaultstargspectdeclR'((s/usr/lib64/python2.7/pydoc.pyRsR          cCsxg}|j}|r&|d|n|jdk ra|jt||j}|d|n|ddj|S(Ns!
%s
s
%s
s
R(RRTR_RRRR(R R+RKR=RRLR'((s/usr/lib64/python2.7/pydoc.pyROs  cCs|j|||S(s*Produce html documentation for a property.(RO(R R$R+R=RH((s/usr/lib64/python2.7/pydoc.pyRscGs'|rd|pd}||j|S(s-Produce HTML documentation for a data object.s%s = R(R(R R$R+R=R>tlhs((s/usr/lib64/python2.7/pydoc.pyRscCs|j|||S(s1Produce html documentation for a data descriptor.(RO(R R$R+R=RH((s/usr/lib64/python2.7/pydoc.pyRscCsg}|dkri}nxLtj|gD]8\}}}|j|d|||kfd||(R;R=RRRR(R RQR((s/usr/lib64/python2.7/pydoc.pyRs (RRRTRtRRRR(((s/usr/lib64/python2.7/pydoc.pyR}s    tTextDoccBseZdZeZejZdZddZdZdddZ dddZ dddZ d Z dddd Zd Zdddd Zdddd ZddddddZRS(s'Formatter class for text documentation.cCsttd|dS(s(Format a string in bold by overstriking.cSs |d|S(Ns((tch((s/usr/lib64/python2.7/pydoc.pyR( RR(RRh(R R4((s/usr/lib64/python2.7/pydoc.pytbold ss cCsX|s dSt|d}t|d|}|rKt|d|d\} } | jj|d r| |kr|j| qqW|r|j||jd t|d }n| rtd | }|jtj|d|g}x0| D](\} } |j|j | | |qW||jdt|d }n| rwg}x0| D](\} } |j|j | | |q)W||jdt|d }n|rg}x6|D].\} } |j|j!| | |ddqW||jdt|d }nt|drKt"|j#}|d d!kr2|ddkr2t$|dd!}n||jd|}nt|dr|||jdt"|j%}nt|dr||jdt"|j&}nt|dr||jdt"|j'}n|S("s5Produce text documentation for a given module object.tNAMEs - s (built-in)tFILEs MODULE DOCSt DESCRIPTIONRVs (package)sPACKAGE CONTENTSs Rt SUBMODULEScSs|dS(Ni((R'((s/usr/lib64/python2.7/pydoc.pyR(oRitCLASSESt FUNCTIONSR8iFtDATAR$i R%s Revision: itVERSIONR&tDATER-tAUTHORR/tCREDITSNs $Revision: ((RR)RRR1RR_RRRRRBR.R6RbRR/R7R3tsetR^R9R:RVtaddR;RR-R\RhRR<RRRsR$RR&R-R/(R R$R+R=tsynoptdescR%R`R|RRRJRKRRdRFt modpkgs_namesRGR*RHt submodulesRIRR((s/usr/lib64/python2.7/pydoc.pyR+s        " " $ "   ""   " "&" """csj}|p|}j}jd}||krOdj|}nj|d|}|rt||} |dt| d}nt} | r| dgpg} | jtt j } t | dkr&dx"| D]} d || qWd nd d fd Y}|fd }fd}fd}t fdt }x|r| r| jn|ddt|fd\}}tjkr|}qn+kr.d}ndtj}|j|d||d}|d||d}|d||d}|d||d}|d||d}|}qWdj| } | s|dS|djt| ddS(!s4Produce text documentation for a given class object.cSs t||S(N(R,(R R((s/usr/lib64/python2.7/pydoc.pytmakenamessclass s = class s(%s)s, s isMethod resolution order:s RRJcs eZdZfdZRS(cSs d|_dS(Ni(RK(R ((s/usr/lib64/python2.7/pydoc.pyRtscs'|jrddnd|_dS(NRZiFi(RK(R (RL(s/usr/lib64/python2.7/pydoc.pyRMs (RRRtRM((RL(s/usr/lib64/python2.7/pydoc.pyRJs cst||\}}|rj|xy|D]n\}}}}yt|}Wn*tk rj||q6Xj||q6Wn|S(N(RRRMRGRNROR(RPRQRNRRR+ReRSRK(RTR=R$RLR (s/usr/lib64/python2.7/pydoc.pyRVs    cslt||\}}|rhj|x6|D]+\}}}}j||q6Wn|S(N(RRRMRO(RPRQRNRRR+ReRSRK(RTR=RLR (s/usr/lib64/python2.7/pydoc.pyRWs   c st||\}}|rj|x|D]w\}}}}t|dsftj|rut|}nd}jt||ddd|dq6Wn|S(NRXR8iFR's ( RRRMR^RRcRR_RRG( RPRQRNRRR+ReRSRKR'(RTR=R$RLR (s/usr/lib64/python2.7/pydoc.pyRYs  $cst|ddS(NiR@(Rb(Rd(R$(s/usr/lib64/python2.7/pydoc.pyR(Rics|dkS(Ni((R[(R\(s/usr/lib64/python2.7/pydoc.pyR(Rs defined heresinherited from %ss Methods %s: cSs|ddkS(NiR`((R[((s/usr/lib64/python2.7/pydoc.pyR(RsClass methods %s: cSs|ddkS(Nis class method((R[((s/usr/lib64/python2.7/pydoc.pyR(RsStatic methods %s: cSs|ddkS(Nis static method((R[((s/usr/lib64/python2.7/pydoc.pyR(RsData descriptors %s: cSs|ddkS(Nisdata descriptor((R[((s/usr/lib64/python2.7/pydoc.pyR(RsData and other attributes %s: cSs|ddkS(NiRd((R[((s/usr/lib64/python2.7/pydoc.pyR(Rs | ((RRCRRRhRRRR RRaR&RbRiR RRRcR$R,R;RR(R R$R+R=R>RdR!RRR"R'RReRLRJRVRWRYRQRgRh((RTR=R$RLR R\s/usr/lib64/python2.7/pydoc.pyRsl                            cCsd|j|S(s)Format an argument default value as text.Ri(R(R R$((s/usr/lib64/python2.7/pydoc.pyRjscCs|j}|p|}d}d}tj|r|j}|rd||k rdt||}qn>|jdk rdt|jj|}ndt||}|j}n||kr|j |} nH|r||j kr|j ||krd}n|j |d|} tj |rtj |\} } } } tj | | | | d|j}|d kr|j |d } |dd !}qnd }| ||}|r|d St|pd}|d |ot|j|d SdS(s;Produce text documentation for a function or method object.Ris from s method of %s instances unbound %s methodis = Rjss lambda is(...)s N(RRR>RkR,RlR_RRmRRnR8RoRpRjRRR(R R$R+R=RHRdRqRrRsRRRuRvRwRxRyR'((s/usr/lib64/python2.7/pydoc.pyR sB        cCszg}|j}|r5||j||dnt|pDd}|rm||j||dndj|S(Ns R(RRRRR(R R+RKR=RRLR'((s/usr/lib64/python2.7/pydoc.pyRO6s   cCs|j|||S(s*Produce text documentation for a property.(RO(R R$R+R=RH((s/usr/lib64/python2.7/pydoc.pyRCscCs|j|||S(s1Produce text documentation for a data descriptor.(RO(R R$R+R=RH((s/usr/lib64/python2.7/pydoc.pyRGsc Cs|j|}|r_|r%|dp(d|}|t|} | dkr_|| d}q_n|rx|j|dp{d|}|dk r|d|jt|7}n|S(s-Produce text documentation for a data object.s = Ris...s N(RR&RR_RRr( R R$R+R=RR8R'RR}tchop((s/usr/lib64/python2.7/pydoc.pyRKs #  N(RRRTR}R|RRRRR_RRRRjRRORRR(((s/usr/lib64/python2.7/pydoc.pyR~s     dx + cCstat|dS(sCThe first time this is called, determine what kind of pager to use.N(tgetpagertpager(R4((s/usr/lib64/python2.7/pydoc.pyRYs cCsttjtjk rtSttjds2tStjj sRtjj rVtSdt j krtj dkr{dSt j j ddkrdSd Snt j j ddkrtStj dkstj j d rd Stt d rt jd dkrdSddl}|j\}}t j|z7tt d rpt jd|dkrpdStSWdt j|XdS(s2Decide what method to use for paging through text.tisattytPAGERR#cSstt|tjdS(NR(t tempfilepagertplainRR(R4((s/usr/lib64/python2.7/pydoc.pyR(iRtTERMtdumbtemacscSstt|tjdS(NR(t pipepagerRRR(R4((s/usr/lib64/python2.7/pydoc.pyR(kRcSst|tjdS(NR(RRR(R4((s/usr/lib64/python2.7/pydoc.pyR(mRtos2cSstt|dS(Nsmore <(RR(R4((s/usr/lib64/python2.7/pydoc.pyR(qRtsystems(less) 2>/dev/nullicSs t|dS(Ntless(R(R4((s/usr/lib64/python2.7/pydoc.pyR(sRiNs more "%s"cSs t|dS(Ntmore(R(R4((s/usr/lib64/python2.7/pydoc.pyR(zR(RR(RR(RRtstdoutRtFileTypet plainpagerR^tstdinRRRR2RR\RttempfiletmkstempRtttypagertunlink(RtfdR((s/usr/lib64/python2.7/pydoc.pyR_s4  !$  (cCstjdd|S(s%Remove boldface formatting from text.s.R(R"R#(R4((s/usr/lib64/python2.7/pydoc.pyRscCsKtj|d}y!|jt||jWntk rFnXdS(s3Page through text by feeding it to another program.twN(RtpopentwriteR!RR(R4tcmdtpipe((s/usr/lib64/python2.7/pydoc.pyRs  cCsvddl}|j}t|d}|jt||jztj|d|dWdtj|XdS(s<Page through text by invoking a program on a temporary file.iNRs "R( RtmktempRRR!RRRR(R4RRRR|((s/usr/lib64/python2.7/pydoc.pyRs   c Cs?ttt|ttjdtjd}yDddl}tjj }|j |}|j |d}Wn&t t fk rd}d}nXzxyttjjdd}Wntk rd}nX|d krd }n|d }}tjjt|| ddx||rtjjd tjj|} | dkrstjjdPn8| dkrtjjd||d|d }q#n| dkr|||}|dkrd}qntjjdt||||!dd||}q#WWd|r:|j||j|nXdS(s%Page through text on a text terminal.Rls iNcSstjjdS(Ni(RRR(((s/usr/lib64/python2.7/pydoc.pyR(RcSstjjd d S(Nii(RRR{(((s/usr/lib64/python2.7/pydoc.pyR(RtLINESiiis -- more --tqtQs s RtBs(RR(s s (RRs(RR!RGRRRqRtttyRtfilenot tcgetattrt setcbreakRRR_R RRRt ValueErrorRRtflusht tcsetattrt TCSAFLUSH( R4R(RRtoldtgetcharthRtincR ((s/usr/lib64/python2.7/pydoc.pyRsL3        !        ,cCs2tjjtt|ttjdtdS(s>Simply print unformatted text. This is the ultimate fallback.RlN(RRRR!RRGRq(R4((s/usr/lib64/python2.7/pydoc.pyRscCsJtj|rT|jtjkr,d|jSt|drFd|jSd|jSntj|rnd|jStj|rd|jj |jj|jfStj |rd|jj |jj|jfStj |rd|jStj |rd |jStj |rd |jSt|tjkr=d |jjSt|jS( s/Produce a short description of the given thing.sbuilt-in module RVspackage smodule sbuilt-in function sgetset descriptor %s.%s.%ssmember descriptor %s.%s.%ssclass s function smethod s instance of (RR-RRRR^R7Rt __objclass__RRR.R8R>RRt InstanceTypeR(tthing((s/usr/lib64/python2.7/pydoc.pytdescribes2        cCsgt|dD]}|r|^q}d\}}xQ|t|krtt||d d|}|r||d}}q7Pq7W|r|}nt}x:||D].}yt||}Wqtk rdSXqW|S(s@Locate an object by name or dotted path, importing as necessary.RiiN(Ni(RR_R&RRRcRGR(RRRR?Rtnt nextmoduleR$((s/usr/lib64/python2.7/pydoc.pytlocates (     t_OldStyleClasscBseZRS((RR(((s/usr/lib64/python2.7/pydoc.pyRscCsyt|trDt||}|dkr:td|n||fSt|dd}|t|trn|ndfSdS(sDGiven an object or a path to an object, get the object and its name.s$no Python documentation found for %rRN(RnRrRR_RRG(RRR$R+((s/usr/lib64/python2.7/pydoc.pytresolves  s Python Library Documentation: %scCs3t||\}}t|}tj|}|r`d|kr`|d||jd 7}n&|r||k r|d|j7}nt|tkr|j}nstj |ptj |ptj |ptj |ptj |pt|tst|}|d7}n||dtj||S(sBRender text documentation, given an object or a path to an object.Rs in s in module s objects (RRRR6RRRt_OLD_INSTANCE_TYPERR-R.R/RRRnRR4R(RRRR$R+RR((s/usr/lib64/python2.7/pydoc.pyt render_doc s$    cCs?ytt|||Wnttfk r:}|GHnXdS(sCDisplay text documentation, given an object or a path to an object.N(RRRR(RRRRK((s/usr/lib64/python2.7/pydoc.pyR'%scCsytt||\}}tjt|tj||}t|dd}|j||jdG|dGHWntt fk r}|GHnXdS(s<Write HTML documentation to a file in the current directory.s.htmlRtwroteN( RthtmlRRRRRRRR(RRR$R+RR|RK((s/usr/lib64/python2.7/pydoc.pytwritedoc,s$  RcCsL|dkri}nx0tj|g|D]\}}}t|q+WdS(sAWrite out HTML documentation for all modules in a directory tree.N(R_R9t walk_packagesR(RtpkgpathtdoneRGR*RH((s/usr/lib64/python2.7/pydoc.pyt writedocs8s  %tHelpercBseZidd6dd6d(d6d)d6d*d6d+d 6d,d 6d-d 6dd6d.d6dd6d/d6dd6d0d6dd6d1d6d2d6d3d6d4d6d d!6d5d"6dd$6dd%6d6d&6d7d'6d8d(6d9d*6d:d6d;d+6d<d6d=d.6Zed/d>DZid?ed76d@dL6dAd 6dBdM6dCdZ6dDd[6dEd^6Zid_d>6d`d;6dadb6dcdd6dedf6dgdh6didj6d7dk6dldm6dndo6dpdq6drds6drdt6dudv6dudw6ZxdejD]V\ZZ xGe D]?Z ej e eZ ee kre dxeZ ne ee osRRtuRs'''s"""RtSTRINGSt+RZt*s**Rs//t%s<>Rt|t^t~RRs<=s>=s==s!=s<>t OPERATORStUNARYs+=s-=s*=s/=s%=s&=s|=s^=s<<=s>>=s**=s//=tAUGMENTEDASSIGNMENTtBITWISEtjtJtCOMPLEXsOPERATORS FORMATTINGtPOWERsTUPLES LISTS FUNCTIONSt,s ATTRIBUTES FLOAT MODULES OBJECTSRtELLIPSISs...sSLICINGS DICTIONARYLITERALSt:s def classt@s\t PRIVATENAMESRZsPRIVATENAMES SPECIALMETHODSRYt BACKQUOTESt`sTUPLES FUNCTIONS CALLSRRsLISTS SUBSCRIPTS SLICINGSt[t]RRsRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspecttTYPEStstringss4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPESsstring-methodssSTRINGS FORMATTINGt STRINGMETHODSt formatstringst FORMATTINGs:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPEStUNICODEtnumberssINTEGER FLOAT COMPLEX TYPEStNUMBERStintegerss int rangetINTEGERtfloatings float mathtFLOATt imaginarys complex cmathttypesseqs%STRINGMETHODS FORMATTING xrange LISTSt SEQUENCESt DICTIONARIEStMAPPINGSttypesfunctionss def TYPESt typesmethodssclass def CLASSES TYPEStMETHODSsbltin-code-objectsscompile FUNCTIONS TYPESt CODEOBJECTSsbltin-type-objectss types TYPESt TYPEOBJECTSt FRAMEOBJECTSt TRACEBACKSsbltin-null-objecttNONEsbltin-ellipsis-objecttSLICINGSsbltin-file-objectstFILESt specialattrstSPECIALATTRIBUTESs!class SPECIALMETHODS PRIVATENAMESRt typesmodulestPACKAGESsoperator-summaryslambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIES BACKQUOTESt EXPRESSIONSt PRECEDENCEtobjectstOBJECTSt specialnamesstBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS1 MAPPINGMETHODS SEQUENCEMETHODS2 NUMBERMETHODS CLASSEStSPECIALMETHODSt customizations cmp hash repr str SPECIALMETHODSsattribute-accesssATTRIBUTES SPECIALMETHODStATTRIBUTEMETHODSscallable-typessCALLS SPECIALMETHODStCALLABLEMETHODSssequence-typess)SEQUENCES SEQUENCEMETHODS2 SPECIALMETHODStSEQUENCEMETHODS1ssequence-methodss)SEQUENCES SEQUENCEMETHODS1 SPECIALMETHODSsMAPPINGS SPECIALMETHODStMAPPINGMETHODSs numeric-typess*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODSt NUMBERMETHODSt execmodels%NAMESPACES DYNAMICFEATURES EXCEPTIONSt EXECUTIONtnamings*global ASSIGNMENT DELETION DYNAMICFEATURESsdynamic-featurestDYNAMICFEATUREStSCOPINGtFRAMESRstry except finally raisescoercion-rulest CONVERSIONSt COERCIONSt conversionst identifiersskeywords SPECIALIDENTIFIERSt IDENTIFIERSs id-classestSPECIALIDENTIFIERSsatom-identifierss atom-literalssHSTRINGS BACKQUOTES NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALStLITERALStTUPLESt exprlistssTUPLES LITERALSt TUPLELITERALSstypesseq-mutablet LISTLITERALStLISTStlistssLISTS LITERALSt typesmappingtDICTIONARYLITERALSRsDICTIONARIES LITERALSsstring-conversionssrepr str STRINGS LITERALSsattribute-referencess(getattr hasattr setattr ATTRIBUTEMETHODSt ATTRIBUTESt subscriptionst SUBSCRIPTStslicingstcallstCALLStpowertunarytbinarytBINARYtshiftingtSHIFTINGtbitwiset comparisonssEXPRESSIONS BASICMETHODStbooleanssEXPRESSIONS TRUTHVALUEt ASSERTIONt assignmentt ASSIGNMENTt augassigntDELETIONtPRINTINGt RETURNINGt IMPORTINGt CONDITIONALtcompoundsfor while break continuetLOOPINGttruths if while and or not BASICMETHODStdebuggertpdbt DEBUGGINGscontext-managerstCONTEXTMANAGERScCs||_||_dS(N(t_inputt_output(R tinputtoutput((s/usr/lib64/python2.7/pydoc.pyRts cCs|jptjS(N(RyRR(R ((s/usr/lib64/python2.7/pydoc.pyR(RcCs|jptjS(N(RzRR(R ((s/usr/lib64/python2.7/pydoc.pyR(RcCs)tjdddkr%|dSdS(Niit?Rs(Rtstack(R ((s/usr/lib64/python2.7/pydoc.pyt__repr__scCsG||jk r|j|n$|j|j|jjddS(Ns You are now leaving help and returning to the Python interpreter. If you want to ask for help on a particular object directly from the interpreter, you can type "help(object)". Executing "help('string')" has the same effect as typing a particular string at the help> prompt. (t_GoInteractivethelptintrotinteractR|R(R trequest((s/usr/lib64/python2.7/pydoc.pyRXs    cCs|jjdxtry|jd}|s5PnWnttfk rPPnXt|}t|dkr|d|dkod knr|d|dd!kr|dd!}nt|d krPn|j |qWdS( Ns shelp> iiiRRiRtquit(RR(RR( R|RRvtgetlinetKeyboardInterrupttEOFErrorRR&RR(R R((s/usr/lib64/python2.7/pydoc.pyR s  6cCsJ|jtjkrt|S|jj||jj|jjSdS(s.Read one line, using raw_input when available.N(R{RRt raw_inputR|RRR{(R tprompt((s/usr/lib64/python2.7/pydoc.pyRs   cCs{t|tdkrA|j}|dkr=|jqg|dkrV|jqg|dkro|jqg|dkr|jqg|dkr|jqg|d dkr|jt|d qg||jkr|j |qg||j kr |j |qg||j kr(|j |qg|rgt |d qgn&t|trZ|n t |d |jjd dS( NRRtkeywordstsymbolsttopicsRismodules is Help on %s:s (RRRt listkeywordst listsymbolst listtopicst listmodulesRRt showsymbolRt showtopicRR'RnRR|R(R R((s/usr/lib64/python2.7/pydoc.pyR&s4        cCs,|jjdttjd gddS(Ns Welcome to Python %s! This is the online help utility. If this is your first time using Python, you should definitely check out the tutorial on the Internet at http://docs.python.org/%s/tutorial/. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit". To get a list of available modules, keywords, or topics, type "modules", "keywords", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as "spam", type "modules spam". ii(R|RttupleRR(R ((s/usr/lib64/python2.7/pydoc.pyR8s iiPc Cs|}|j||}t||d|}xt|D]}xt|D]z}|||}|t|krS|jj||||dkr|jjdd|dt||qqSqSW|jjdq@WdS(NiRs (R;R&RR|R( R titemstcolumnsRtcolwRtrowRR((s/usr/lib64/python2.7/pydoc.pyRIs  4cCs*|jjd|j|jjdS(NsN Here is a list of the Python keywords. Enter any keyword to get more help. (R|RRRRF(R ((s/usr/lib64/python2.7/pydoc.pyRWs cCs*|jjd|j|jjdS(Nsx Here is a list of the punctuation symbols which Python assigns special meaning to. Enter any symbol to get more help. (R|RRRRF(R ((s/usr/lib64/python2.7/pydoc.pyR^s cCs*|jjd|j|jjdS(NsN Here is a list of available topics. Enter any topic name to get more help. (R|RRRRF(R ((s/usr/lib64/python2.7/pydoc.pyRfs c Csyddl}Wn"tk r4|jjddSX|jj||jj|}|sz|jjdt|dSt|tdkr|j ||S|\}}y|jj|}Wn,t k r|jjdt|dSXt t |d|r"|pdd|}n|rddl }ddl} |j } | j| jdtt|dd|jjd | jndS( Nist Sorry, topic and keyword documentation is not available because the module "pydoc_data.topics" could not be found. sno documentation found for %s Rs RsRelated help topics: s, s %s (tpydoc_data.topicsRR|RRRRRRRtKeyErrorRRtStringIOt formattert DumbWritertsend_flowing_dataRRtgetvalue( R ttopict more_xrefst pydoc_datattargettlabeltxrefsR'RRtbuffer((s/usr/lib64/python2.7/pydoc.pyRms6  !   cCs9|j|}|jd\}}}|j||dS(NR(Rt partitionR(R tsymbolRRRZR((s/usr/lib64/python2.7/pydoc.pyRs cs|r#|jjdt|nj|jjdi}|dfd}tjd||j|j|jjddS(NsO Here is a list of matching modules. Enter any module name to get more help. sI Please wait a moment while I gather a list of all available modules... cSsM|r'|ddkr'|d d}nt|ddkrId||>RRRRRRs<=s>=s==s!=s<>(RRs<=s>=s==s!=s<>(RZR( s+=s-=s*=s/=s%=s&=s|=s^=s<<=s>>=s**=s//=(s<>RRRR(R R(RsRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect(Rs4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES(sstring-methodssSTRINGS FORMATTING(RR (Rs:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES(R sINTEGER FLOAT COMPLEX TYPES(R"s int range(R$s float math(R&s complex cmath(R's%STRINGMETHODS FORMATTING xrange LISTS(R+s def TYPES(R,sclass def CLASSES TYPES(sbltin-code-objectsscompile FUNCTIONS TYPES(sbltin-type-objectss types TYPES(sbltin-null-objectR(sbltin-ellipsis-objectR3(sbltin-file-objectsR(R5R(Rs!class SPECIALMETHODS PRIVATENAMES(R7R(soperator-summaryslambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIES BACKQUOTES(R;R(R=stBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS1 MAPPINGMETHODS SEQUENCEMETHODS2 NUMBERMETHODS CLASSES(R?s cmp hash repr str SPECIALMETHODS(sattribute-accesssATTRIBUTES SPECIALMETHODS(scallable-typessCALLS SPECIALMETHODS(ssequence-typess)SEQUENCES SEQUENCEMETHODS2 SPECIALMETHODS(ssequence-methodss)SEQUENCES SEQUENCEMETHODS1 SPECIALMETHODS(ssequence-typessMAPPINGS SPECIALMETHODS(s numeric-typess*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODS(REs%NAMESPACES DYNAMICFEATURES EXCEPTIONS(RGs*global ASSIGNMENT DELETION DYNAMICFEATURES(sdynamic-featuresR(Rstry except finally raise(scoercion-rulesRK(RMRL(RNskeywords SPECIALIDENTIFIERS(s id-classesR(satom-identifiersR(s atom-literalssHSTRINGS BACKQUOTES NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALS(RSsTUPLES LITERALS(stypesseq-mutableRU(RWsLISTS LITERALS(RXRY(RsDICTIONARIES LITERALS(sstring-conversionssrepr str STRINGS LITERALS(sattribute-referencess(getattr hasattr setattr ATTRIBUTEMETHODS(R[RB(R]R(R^R9(R`R9(RaR9(RbR9(RdR9(RfR9(RgsEXPRESSIONS BASICMETHODS(RhsEXPRESSIONS TRUTHVALUE(RjR (RlRD(Rrsfor while break continue(Rts if while and or not BASICMETHODS(RuRv(scontext-managersRN(!RRRRt _strprefixest_symbols_inverseRt iteritemsRtsymbols_RRRR_RtRR{R|RR$RRXRRRRRRRRRRR(((s/usr/lib64/python2.7/pydoc.pyR?sB                 tScannercBs eZdZdZdZRS(sA generic tree iterator.cCs)||_g|_||_||_dS(N(trootststatetchildrentdescendp(R RRR((s/usr/lib64/python2.7/pydoc.pyRts   cCs|jsF|jsdS|jjd}||j|fg|_n|jd\}}|sv|jj|jS|jd}|j|r|jj||j|fn|S(Nii(RRR_R RtnextRR(R troottnodeRtchild((s/usr/lib64/python2.7/pydoc.pyRs    "(RRRTRtR(((s/usr/lib64/python2.7/pydoc.pyRs RcBs eZdZddddZRS(s7An interruptible scanner that searches module synopses.cCs|rt|}nt|_i}xtjD]}|dkr.d||<|dkri|d|dqtt|jp~ddd}t t|d||dkr|d||qq.q.Wx@t j d|D],\}}} |jrPn|dkr|d|dq|j |} t | drd dl} t| j| j|pad}t | d r| j|} qd} nC| j|} | jr| jjdnd}t| d d} t t|d||dkr|| ||qqW|r|ndS( Nt__main__iRs is - Rt get_sourceit get_filenameRU(RRwRRRR_RRRTRR9Rt find_moduleR^RR~RRRRRG(R RRJt completerRtseenR*RRGRHtloaderRRR((s/usr/lib64/python2.7/pydoc.pyRsB    "#"    "#N(RRRTR_R(((s/usr/lib64/python2.7/pydoc.pyRsc CsOd}d}tj+tjdtj||d|WdQXdS(sAPrint all the one-line module summaries that contain a substring.cSs8|ddkr!|d d}n|G|o2d|GHdS(Nis .__init__s (package)s- ((RR*R((s/usr/lib64/python2.7/pydoc.pyRscSsdS(N((R*((s/usr/lib64/python2.7/pydoc.pyRstignoreRN(twarningstcatch_warningstfilterwarningsRR(RJRR((s/usr/lib64/python2.7/pydoc.pyRs     c Csddl}ddl}ddl}d|jfdY}d|jfdY}d|jfdY}|j|_||_||_z8y|||j Wnt |j fk rnXWd|r|nXdS(NitMessagecBseZddZRS(icSsf|j}|jdjdj||||jd|_|jd|_|j|jdS(Niscontent-transfer-encodings content-type(RRCRtt getheadertencodingheadert typeheadert parsetypet parseplist(R tfptseekableR((s/usr/lib64/python2.7/pydoc.pyRts  ! (RRRt(((s/usr/lib64/python2.7/pydoc.pyRst DocHandlercBs#eZdZdZdZRS(cSs_yG|jd|jdd|j|jjtj||Wntk rZnXdS(Nis Content-Types text/html(t send_responset send_headert end_headerstwfileRRRR(R RR((s/usr/lib64/python2.7/pydoc.pyt send_documents    c Ss|j}|ddkr&|d }n|d dkrC|d}n|r|dkryt|dd}Wn3tk r}|j|tjt|dSX|r|jt|tj||q|j|dt |ntj dd d }d }t d t j }tj||}d tjdd d|g}i} x*t jD]} |jtj| | q]W|t|d}|jd|dS(Nis.htmliRRRs$no Python documentation found for %ss?Python: Index of Moduless#ffffffs#7799eecSsd||fS(Ns%s((R+((s/usr/lib64/python2.7/pydoc.pyt bltinlink*scSs |dkS(NR((RQ((s/usr/lib64/python2.7/pydoc.pyR(,Rs

sBuilt-in Moduless#ee77aas

pydoc by Ka-Ping Yee <ping@lfw.org>sIndex of Modules(RRRRRRRrRRRRRbRRRRRR{R( R RR@RKRRtnamesRtindicesRR((s/usr/lib64/python2.7/pydoc.pytdo_GETs<   %       cWsdS(N((R R((s/usr/lib64/python2.7/pydoc.pyt log_message:R(RRRRR(((s/usr/lib64/python2.7/pydoc.pyRs  #t DocServercBs#eZdZdZdZRS(cSs>d}||f|_||_|jj||j|jdS(Nt localhost(taddressRRLRtthandler(R tportRthost((s/usr/lib64/python2.7/pydoc.pyRt=s cSsiddl}t|_xM|jsd|j|jjgggd\}}}|r|jqqWdS(Nii(tselectRwRtsocketRthandle_request(R Rtrdtwrtex((s/usr/lib64/python2.7/pydoc.pytserve_until_quitCs    -cSsJ|jj|d|jd|jf|_|jrF|j|ndS(Ns http://%s:%d/i(RLtserver_activateRt server_portRR(R ((s/usr/lib64/python2.7/pydoc.pyRJs (RRRtRR(((s/usr/lib64/python2.7/pydoc.pyR<s  ( tBaseHTTPServert mimetoolsRRtBaseHTTPRequestHandlert HTTPServerRLRt MessageClassRRterror( RRRRRRRRR((s/usr/lib64/python2.7/pydoc.pytserves$ .   cCsodddY}ddl}y8|j}z||}|jWd|jXWntk rjnXdS(sEGraphical interface (starts web server and pops up a control window).tGUIcBseZddZdZdddZddZddZdZddZ dZ dd Z dd Z d Z d Zdd ZRS(i(c Ss||_d|_d|_ddl}|j||_|j|jdd|_|j |jddd|j dd|_ |j |jddd|j dd|_ |j||_|j|jdd |_|j|j|_|jjd |j|j |jdd d d d|jdd|_tjdkrU|jjddn|jjd|jjd|j |jjdddd|j jdddddd|j jdddddd|jjdddd|jjdd|jjdddddd|jjdddd|jjdtjdkr[dp^df}|j|d|dd|_|jjd|j|jjd |j|j |d!d"d|jj!|_"|jj#d#|j"j$|j||_%|j |j%dd$d|j|_&|j |j%dd%d|j'|_(|j&jdddddd|j(jdddddd|jj)|jj*|_+|jj,|_-|jj.|jj.|jj.|j%j.|_/|j+|j/|_0|_1d |_2|jj3d&|j+|j-f|jj4|j+|j-|jj5j6ddl7}|j8d't9d(||j:|j fj;dS()NiR4sStarting server... s open browsertcommandRtdisableds quit servings Search forststoptpadyiR#tsidetrighttpydoctWM_DELETE_WINDOWttoptfillRQtlefttexpandit helveticaii tfonttheightis storienttverticaltyscrollcommandsgo to selecteds hide resultss%dx%dRR(<twindowR_tservertscannertTkintertFramet server_frmtLabelt title_lbltButtonRtopen_btnRtquit_btnt search_frmt search_lbltEntryt search_enttbindR Rtstop_btnRR2tpackRtprotocolt focus_settListboxt result_lstRtgotot Scrollbartyviewt result_scrtconfigRt result_frmtgoto_btnthidethide_btnRDt winfo_widthtminwidtht winfo_heightt minheighttwinfo_reqheightt bigminheighttbigwidtht bigheighttexpandedt wm_geometryt wm_minsizettkt willdispatcht threadingtThreadRtreadyR(R RRRRR.((s/usr/lib64/python2.7/pydoc.pyRt_sp     ! !  &    cSsM||_|jjdd|j|jjdd|jjdddS(NR4sPython documentation server at Rtnormal(RR RRR R (R R((s/usr/lib64/python2.7/pydoc.pyR0s   cSs|p|jj}yddl}|j|Wnatk rtjdkrbtjd|qtjd|}|rtjd|qnXdS(NiR#s start "%s"s netscape -remote "openURL(%s)" &snetscape "%s" &( RRt webbrowserRRRR2RR(R teventRR2trc((s/usr/lib64/python2.7/pydoc.pyRs  cSs)|jrd|j_n|jjdS(Ni(RRR(R R3((s/usr/lib64/python2.7/pydoc.pyRs c Ss|jj}|jjdd|jjdd|jjdd||jj|jjdd|jjdd |j jdd |j d dl }|j rd |j _ nt|_ d }|jd|j jd|j||jfdtd|jdS(NRRRR1R4sSearching for "%s"...RiRRiicSsdS(N((R*((s/usr/lib64/python2.7/pydoc.pyRsRRtkwargsR(RRRRRRtforgetRtdeleteRRR.RRRR/RRDRRR(R R3RJR.R((s/usr/lib64/python2.7/pydoc.pyR s"      cSsF|ddkr!|d d}n|jjd|d|p=ddS(Nis .__init__s (package)Rs - s(no description)(Rtinsert(R RR*R((s/usr/lib64/python2.7/pydoc.pyRDs cSs%|jr!d|j_d|_ndS(Ni(RRR_(R R3((s/usr/lib64/python2.7/pydoc.pyRs  cSsd|_|jjdd|jjdd|jjdddddd tjd krm|jj n|jjd d dS( NR4s Search forRRRRRQRiR#RR( R_RRRRRRR2RR6(R ((s/usr/lib64/python2.7/pydoc.pyRs cSs|jjdddS(NRR1(RR(R R3((s/usr/lib64/python2.7/pydoc.pyRscSsZ|jj}|rVt|jj|dd}|jd|jj|dndS(NiRs.html(Rt curselectionRRRRR(R R3t selectionR*((s/usr/lib64/python2.7/pydoc.pyRs cSs|js dS|jj|jj|jj|jj|_|jj|_ |jj d|j |j f|jj |j |j d|_dS(Ns%dx%di(R)RR6RRRR!R'R#R(R*R"R$R+(R ((s/usr/lib64/python2.7/pydoc.pytcollapses     cSs|jr dS|jjdddd|jjdddd|jjddddd d |jjd |j|jf|jj |j |j d |_dS( NRtbottomRRQRtyRtbothRis%dx%d( R)RRRRRR*R'R(R+R"R&(R ((s/usr/lib64/python2.7/pydoc.pyRs  cSs|j|jdS(N(RR;(R R3((s/usr/lib64/python2.7/pydoc.pyR s N(RRRtR0R_RRR RDRRRRR;RR(((s/usr/lib64/python2.7/pydoc.pyR^s E         iN((RtTktmainlooptdestroyR(RRRtgui((s/usr/lib64/python2.7/pydoc.pyRB\s    cCs%t|to$t|tjdkS(Ni(RnRrRRtsep(RQ((s/usr/lib64/python2.7/pydoc.pytispath scCsddl}dddY}dtjkrtjjtjd}|tjkritjj|ntjjddny|jtjdd \}}d}x|D]\}}|d krtdS|d krt |dS|d krGyt |}Wnt k r |nXd } d} t || | dS|dkrd}qqW|so|nx|D]} t | rtjj|  rd| GHPny|t | rtjj| rt| } n|rt | r tjj| r t| q#t| n tj| Wqvtk r>} | GHqvXqvWWnT|j|fk rtjjtjd} d| tj| | | tjfGHnXdS(s@Command-line interface (looks at sys.argv to decide what to do).iNtBadUsagecBseZRS((RR(((s/usr/lib64/python2.7/pydoc.pyRE sRiRisgk:p:ws-gs-ks-pcSsd|jGHdS(Nspydoc server ready at %s(R(R((s/usr/lib64/python2.7/pydoc.pyR06 scSs dGHdS(Nspydoc server stopped((((s/usr/lib64/python2.7/pydoc.pytstopped8 ss-wsfile %r does not existspydoc - the Python documentation tool %s ... Show text documentation on something. may be the name of a Python keyword, topic, function, module, or package, or a dotted reference to a class or function within a module or module in a package. If contains a '%s', it is used as the path to a Python source file to document. If name is 'keywords', 'topics', or 'modules', a listing of these things is displayed. %s -k Search for a keyword in the synopsis lines of all available modules. %s -p Start an HTTP server on the given port on the local machine. Port number 0 can be used to get an arbitrary unused port. %s -w ... Write out the HTML documentation for a module to a file in the current directory. If contains a '%s', it is treated as a filename; if it names a directory, documentation is written for all the contents. ((tgetoptRRRtdirnametargvtremoveR8RBRR RRRDtexistsRuRRRRRRRRRC(RGREt scriptdirtoptsRtwritingtopttvalRR0RFtargRKR((s/usr/lib64/python2.7/pydoc.pytcli s^                R(bRTR-R&R$R/RRRR"RRRcR9RRRtstringRRRRRRRRt tracebackR t collectionsR RRRRR)R,R3R6R;R t IGNORECASER<R=RARERRR_RbRiRoRjt NameErrorR$RqR!tlocaletgetpreferredencodingRsRyR~RRNRRRRRRR}R~RRRRRRRRRR4RRRRRRR'RRRRRRRRRBRDRRR(((s/usr/lib64/python2.7/pydoc.pyt!s l:                   29*% Y  !  ,       o , [  Q