Lc@sdZdZdZdZdZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk Z ddk lZddklZlZlZlZlZlZlZlZdd klZydd klZWn)ej od efd YZnXd ZdZdZ dZ!dZ"dZ#dZ$ei%dei&Z'dZ(dZ)dZ*dZ+e,dZ-dZ.dZ/dZ0hdZ1de2fdYZ3d Z4d!hd"Z5d#fd$YZ6d%efd&YZ7d'e6fd(YZ8d)efd*YZ9d+e6fd,YZ:d-a;d.Z<d/Z=d0Z>d1Z?d2Z@d3ZAd4ZBd!d5ZCe:ZDe8ZEd6fd7YZFeGeFZHd!d8ZId9d!d:ZJd9d!d;ZKd!d<ZLd=e,d>ZMd?fd@YZNeNZOdAfdBYZPdCfdDYZQdEZRe,e,dFZSdGZTdHZUdIZVeWdJjo eVndS(KsGenerate 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. 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 http://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: 83492 $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 |idS(Ni(tpop(tself((s/usr/lib64/python2.6/pydoc.pytpopleft=s(t__name__t __module__R (((s/usr/lib64/python2.6/pydoc.pyR <scCsg}g}xztiD]o}tii|pd}tii|}||jo1tii|o|i||i|qqW|S(sAConvert sys.path into a list of absolute, existing, unique paths.t.(tsystpathtostabspathtnormcasetisdirtappend(tdirstnormdirstdirtnormdir((s/usr/lib64/python2.6/pydoc.pytpathdirsBs   cCsFti|p ti|}|otiddt|pdS(s-Get the doc string or comments for an object.s^ * t(tinspecttgetdoct getcommentstretsubR(tobjecttresult((s/usr/lib64/python2.6/pydoc.pyRNscCstt|d}t|djo|ddfSt|djo.t|d o|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.6/pydoc.pytsplitdocSs %cCs2|i}|i|jo|id|}n|S(s@Get a class name and qualify it with a module name if necessary.R(RR(R#tmodnametname((s/usr/lib64/python2.6/pydoc.pyt classname\s cCs^ti|pMti|p=ti|p-ti|pti|p ti| S(s>Check if an object is of a type that probably means it's data.(Rtismoduletisclasst isroutinetisframet istracebacktiscode(R#((s/usr/lib64/python2.6/pydoc.pytisdatacs  cGs=x6|o.tt||d|d}|d}qW|S(s/Do a series of global replacements on a string.iii(RR(ttexttpairs((s/usr/lib64/python2.6/pydoc.pytreplaceis  cCsdt||joMtd|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(R3tmaxlentpretpost((s/usr/lib64/python2.6/pydoc.pytcramps s at 0x[0-9a-f]{6,16}(>+)$cCstid|S(s>Remove the hexadecimal id from a Python object representation.s\1(t _re_stripidR"(R3((s/usr/lib64/python2.6/pydoc.pytstripidyscCsti|p ti|S(N(Rtismethodtismethoddescriptor(tobj((s/usr/lib64/python2.6/pydoc.pyt_is_some_method~scCsh}x*ti|tD]\}}d||s>(R5(R R3((s/usr/lib64/python2.6/pydoc.pytescapexscCsti||S(N(RR(R R#((s/usr/lib64/python2.6/pydoc.pyR{scCstt|doMdttt|id}t||ot||||Sn|ittt ||i S(NRtrepr_RY( thasattrRRRRRFRR:R<RR(R RPtlevelt methodname((s/usr/lib64/python2.6/pydoc.pytrepr1~s "cCst||i}t|}d|jo;dt|ddjo"d|d|i||dStidd|i|S(Ns\s\\RRis-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)s\1(R:RRR5RR!R"(R RPRttestttestrepr((s/usr/lib64/python2.6/pydoc.pyt repr_strings &" cCsKy)|ittt||iSWn|id|iiSXdS(Ns <%s instance>(RR:R<RRt __class__R(R RPR((s/usr/lib64/python2.6/pydoc.pyt repr_instances)( RRRSRgRRRRtrepr_strRt repr_unicode(((s/usr/lib64/python2.6/pydoc.pyRps      tHTMLDoccBsOeZdZeZeiZeiZdZddZdddddZ dZ dZ d d Z d Zd Zd ZdZdZdhhhdZddZdddZddhhdZdZddhhhddZdZddddZdddZddddZddZRS(s'Formatter class for HTML documentation.cCsd||fS(sFormat an HTML page.s Python: %s %s ((R ttitletcontents((s/usr/lib64/python2.6/pydoc.pytpagesRcCsd|||||pdfS(sFormat a page heading.s'
 
 
%s
%s
s ((R Rtfgcoltbgcoltextras((s/usr/lib64/python2.6/pydoc.pytheadings is c Cs~|djodd|d}nd|||f} |o| 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.6/pydoc.pytsections cGsd|}|i||S(s$Format a section with a big heading.s%s(R(R RR((s/usr/lib64/python2.6/pydoc.pyt bigsections c Cs7|it|}t|dddddddd S(s!Format literal preformatted text.s s Rs s s
(RRR5(R R3((s/usr/lib64/python2.6/pydoc.pyt preformatsicCsd}t||d|}xt|D]w}|dd|}xRt|||||D]5}|t|jo||||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.6/pydoc.pyt multicolumns  cCsd|S(Ns%s((R R3((s/usr/lib64/python2.6/pydoc.pytgreyscGs5x.|D]&}||jod|||fSqW|S(s:Make a link for an identifier, given name-to-URL mappings.s%s((R R*tdictstdict((s/usr/lib64/python2.6/pydoc.pytnamelinks  cCsp|itii|i}}t||o4t|||jod|i|t||fSt||S(sMake a link for a class.s%s(RRR}RvRRRFR+(R R#R)R*R((s/usr/lib64/python2.6/pydoc.pyt classlinks &cCsd|i|ifS(sMake a link for a module.s%s(R(R R#((s/usr/lib64/python2.6/pydoc.pyt modulelinkscCsu|\}}}}|o|i|S|od||f}n d|}|od|}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 RaR*RRltshadowedturlR3((s/usr/lib64/python2.6/pydoc.pyt modpkglinks cCs|p|i}g}d}tid}xto|i||} | pPn| i\} } |i|||| !| i\} } }}}}| o3|| idd}|id||fn|o1dt |}|id||| fn|o1dt |}|id||| fnq|| | d!d jo#|i|i ||||n6|o|id |n|i|i ||| }q.W|i|||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.%sR( RR!tcompileRitsearchtspanRtgroupsR5tintRR(R R3RtfuncstclassesRHtresultstheretpatterntmatchtstarttendR]tschemetrfctpeptselfdotR*R((s/usr/lib64/python2.6/pydoc.pytmarkups:!!# c Csd}x|D]}t|td jo|\}}|d}||i||}|o_||fjoOg}x'|D]} |i|i| |q|W|dt|dd}n|d}q t|tgjo!|d|i|||}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$tentrytctbasestparentsRK((s/usr/lib64/python2.6/pydoc.pyR.s$   c$%Gs|i}y |i}Wntj o d}nXt|d}g}xJtt|dD]2}|idt||d d||fq^Wt||dd} d| } yXt i |} | } t i djoddk } | i| } nd| | f}Wntj o d }nXg}t|d oft|i}|d d.jo(|dd jot|d d!}n|id|i|nt|do#|i|it|in|o| dt|d} n|i|}|dj odt}nd}|i| ddd||}t i|t i}gh}}xt i|t iD]w\}}|dj pt i|p||joAt||o-|i||fd|||<|||i't|i5|i)}"||i0d+dd|"}nt|d,o>|i't|i6|i)}"||i0d-dd|"}n|S(/s/Produce HTML documentation for a module object.Ris5%sis)%stwin32Ns%ss (built-in)t __version__i t$s Revision: s version %st__date__s (%s)s, s(
Module DocsRs#ffffffs#7799eesindex
Rms.html#s#-s %ss

%s

RUisPackage Contentss#aa55cccSs|i|dS(i(R(t key_valueRL((s/usr/lib64/python2.6/pydoc.pytstModulescSs|dS(i((R((s/usr/lib64/python2.6/pydoc.pyRstClassess#ee77aat Functionss#eeaa77tDatas#55aa55s
t __author__tAuthort __credits__tCreditss $Revision: (7Rt__all__RR\RRR%RRRRRtplatformt nturl2patht pathname2urlRRtstrRRRRRtlocalsRRAR,R-t getmoduleR_RBRR}RvRFR.t isbuiltint isfunctionR2RRRtpkgutilt iter_modulesRUtsortRRRReRt getclasstreeRR#R%($R R#R*tmodtignoredR]tpartstlinksRt linkednametheadRRR)tfilelinkRRRR$R}RtcdictRIRJRKR)RRtfdictRaR&tmodpkgstimportertispkgRt classlist((s/usr/lib64/python2.6/pydoc.pyRAs   '   "#     "  $ .   & !   ! &  &      csi}|p|}i}g} | idd(fdY} | tti} t| djoPidx+| D]#} di| i qWdnfd} fd}fd }t d t }hxg|D]_\}}}}d |d ||<}t |}y|| i(RB(R (tpush(s/usr/lib64/python2.6/pydoc.pytmaybes (RRRgRD((RC(s/usr/lib64/python2.6/pydoc.pyRAs is&
Method resolution order:
s
%s
s
c st||\}}|omi|xV|D]J\}}}}it||dq7Wn|S(Ns (RQRDRRF(tmsgtattrsRMtokR*RbthomeclsRJ(RtmdictthrR R#RCRR4(s/usr/lib64/python2.6/pydoc.pytspills  csnt||\}}|oNi|x7|D]+\}}}}i||q7Wn|S(N(RQRDt_docdescriptor(RERFRMRGR*RbRHRJ(RJR RCR4(s/usr/lib64/python2.6/pydoc.pytspilldescriptorss  !c st||\}}|oi|x|D]\}}}}it||}t|dpti|ot|dd} nd} | djod|nCit |i } d| } d|| fdq7Wn|S(Nt__call__RSs
%s
s
%ss
%s%s
s ( RQRDRRFRRR`R\RRR( RERFRMRGR*RbRHRJRKR&(RRIR R#RJR4RRC(s/usr/lib64/python2.6/pydoc.pyt spilldatas&    cSst|dS(i(R_(Ra((s/usr/lib64/python2.6/pydoc.pyRsRmt-ics|djS(i((tt(t thisclass(s/usr/lib64/python2.6/pydoc.pyRss defined heresinherited from %ss:
RIcSs|dS(i((RQ((s/usr/lib64/python2.6/pydoc.pyR%scSst|d|dS(i(tcmp(tt1tt2((s/usr/lib64/python2.6/pydoc.pyR'ss Methods %scSs|ddjS(itmethod((RQ((s/usr/lib64/python2.6/pydoc.pyR+ssClass methods %scSs|ddjS(is class method((RQ((s/usr/lib64/python2.6/pydoc.pyR-ssStatic methods %scSs|ddjS(is static method((RQ((s/usr/lib64/python2.6/pydoc.pyR/ssData descriptors %scSs|ddjS(isdata descriptor((RQ((s/usr/lib64/python2.6/pydoc.pyR1ssData and other attributes %scSs|ddjS(iRa((RQ((s/usr/lib64/python2.6/pydoc.pyR3sRs*class %ss/%s = class %ss(%s)s, s%s
 
s#000000s#ffc8d8i((RRBRR RtgetmroR%RDRRtfilterRfRFRR RQt __builtin__R#R2tAssertionErrorRRRRR(R R#R*R4RRR5trealnameRRRAtmroRKRKRMRORFRIRbRHRJtanchort inheritedttagRRR&(( RRIRRR R4R#RJRCRs/usr/lib64/python2.6/pydoc.pyRs       $  $                    $cCs|id|i|S(s)Format an argument default value as text.t=(RR(R R#((s/usr/lib64/python2.6/pydoc.pyt formatvalueIscCs`|i}|p|}|o |ipdd|} d} d} ti|o|i} |o+| |j od|i| |} qnG|idj o d|i|ii|} nd|i| |} |i}n||jod| |f} nj|oI||i jo9|i ||jo%d|id||f}d } n|}d | ||f} ti |ohti |\}}}}ti ||||d |i }|d jod |} |d d!}qnd}| || o|id| }| o d|S|it||i|||}|od|}d||fSdS(s;Produce HTML documentation for a function or method object.RRPis from s method of %s instances unbound %s methods$%ss%sis)%s = %sRass$%s lambda is(...)s'%ss
%s
s
%s
s
%s
%s
N(RRR=tim_classRtim_selfR\Rtim_funct__dict__R/t getargspect formatargspecRaRRRR(R R#R*R4RRRHRGR[R]tnotetskipdocstimclassRtreallinkRtvarargstvarkwtdefaultstargspectdeclR&((s/usr/lib64/python2.6/pydoc.pyRMsR           cCs|g}|i}|o|d|n|idj o-|it||i}|d|n|ddi|S(Ns!
%s
s
%s
s
R(RRSR\RRRR(R R*RJR4RRCR&((s/usr/lib64/python2.6/pydoc.pyRLs  cCs|i|||S(s*Produce html documentation for a property.(RL(R R#R*R4RG((s/usr/lib64/python2.6/pydoc.pyRscGs)|o d|pd}||i|S(s-Produce HTML documentation for a data object.s%s = R(R(R R#R*R4R5tlhs((s/usr/lib64/python2.6/pydoc.pyRscCs|i|||S(s1Produce html documentation for a data descriptor.(RL(R R#R*R4RG((s/usr/lib64/python2.6/pydoc.pyRscCsg}|djo h}nxLti|gD]8\}}}|i|d|||jfd||R*R?R((s/usr/lib64/python2.6/pydoc.pytindexs  N(RRRSRt_repr_instanceRRRRR\RRRRRRRRRRRRRRaRRLRRRRr(((s/usr/lib64/python2.6/pydoc.pyRs8           & | 5 tTextReprcBs8eZdZdZdZdZeZdZRS(sAClass for safely making a text representation of a Python object.cCs:ti|d|_|_d|_d|_|_dS(Nii id(RRgRRRRR(R ((s/usr/lib64/python2.6/pydoc.pyRgs  cCstt|doMdttt|id}t||ot||||Snttt||i S(NRRRY( RRRRRRFR:R<RR(R RPRR((s/usr/lib64/python2.6/pydoc.pyRs "cCsat||i}t|}d|jo2dt|ddjod|d||dS|S(Ns\s\\RRi(R:RRR5(R RPRRR((s/usr/lib64/python2.6/pydoc.pyRs  &cCs9y ttt||iSWnd|iiSXdS(Ns <%s instance>(R:R<RRRR(R RPR((s/usr/lib64/python2.6/pydoc.pyRs (RRRSRgRRRR(((s/usr/lib64/python2.6/pydoc.pyRts    tTextDoccBseZdZeZeiZdZddZdZdddZ 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(s((tch((s/usr/lib64/python2.6/pydoc.pyRsR(RRe(R R3((s/usr/lib64/python2.6/pydoc.pytboldss cCs\|pdSt|d}t|d|}|ot|d|dR)R?t submodulesR@RR((s/usr/lib64/python2.6/pydoc.pyRs !        &      $    #  # &#"###c s5i}|p|}i}id}||jodi|}ni|d|}|o*t||}|dt|d}nt} | o| dgpg} | itt i } t | djo=dx"| D]} d || qWd nd d fd Y} | fd }fd}fd}t dt }x:|o2| o| in|ddt|fd\}}tijo |}qn.jo d}ndti}|i|d||d}|d||d}|d||d}|d||d}|d||d}|gjpt|}qWdi| } | p |dS|dit| ddS(!s4Produce text documentation for a given class object.cSs t||S(N(R+(RR((s/usr/lib64/python2.6/pydoc.pytmakename_ssclass s = class s(%s)s, s isMethod resolution order:s RRAcs eZdZfdZRS(cSs d|_dS(Ni(RB(R ((s/usr/lib64/python2.6/pydoc.pyRgxscs)|ioddnd|_dS(NRPiFi(RB(R (RC(s/usr/lib64/python2.6/pydoc.pyRDzs (RRRgRD((RC(s/usr/lib64/python2.6/pydoc.pyRAws cszt||\}}|oZi|xC|D]7\}}}}it||q7Wn|S(N(RQRDRRF(RERFRMRGR*RbRHRJ(RJR R#RCR4(s/usr/lib64/python2.6/pydoc.pyRKs  csnt||\}}|oNi|x7|D]+\}}}}i||q7Wn|S(N(RQRDRL(RERFRMRGR*RbRHRJ(RJR RCR4(s/usr/lib64/python2.6/pydoc.pyRMs  !c st||\}}|oi|x|D]z\}}}}t|dpti|ot|}nd}it||ddd|dq7Wn|S(NRNR7iFR&s ( RQRDRRR`RR\RRF( RERFRMRGR*RbRHRJR&(R#RJR RCR4(s/usr/lib64/python2.6/pydoc.pyROs  %cSst|dS(i(R_(Ra((s/usr/lib64/python2.6/pydoc.pyRsics|djS(i((RQ(RR(s/usr/lib64/python2.6/pydoc.pyRss defined heresinherited from %ss Methods %s: cSs|ddjS(iRV((RQ((s/usr/lib64/python2.6/pydoc.pyRssClass methods %s: cSs|ddjS(is class method((RQ((s/usr/lib64/python2.6/pydoc.pyRssStatic methods %s: cSs|ddjS(is static method((RQ((s/usr/lib64/python2.6/pydoc.pyRssData descriptors %s: cSs|ddjS(isdata descriptor((RQ((s/usr/lib64/python2.6/pydoc.pyRssData and other attributes %s: cSs|ddjS(iRa((RQ((s/usr/lib64/python2.6/pydoc.pyRss | ((RRBRRwReRRRR RRWR%RXRfR RQRYR#R+R2RZRyR(R R#R*R4R[RRRRR&RR\RKRARKRMRORFR^R_((RRR R#RJR4RCs/usr/lib64/python2.6/pydoc.pyRYsr                            cCsd|i|S(s)Format an argument default value as text.R`(R(R R#((s/usr/lib64/python2.6/pydoc.pyRascCs|i}|p|}d}d}ti|o|i}|o(||j odt||}qnA|idj odt|ii|}ndt||}|i}n||jo|i |} nM|o.||i jo|i ||jo d}n|i |d|} ti |oqti |\} } } } ti | | | | d|i}|d jo$|i |d } |dd !}qnd }| ||}|o |d St|pd}|d |ot|i|d SdS(s;Produce text documentation for a function or method object.Ris from s method of %s instances unbound %s methodis = Rass lambda is(...)s N(RRR=RbR+RcR\RRdRwReR/RfRgRaRRRy(R R#R*R4RGR[RhRiRjRRRlRmRnRoRpR&((s/usr/lib64/python2.6/pydoc.pyRsB         cCsg}|i}|o!||i||dnt|pd}|o!||i||dndi|S(Ns R(RRwRRyR(R R*RJR4RRCR&((s/usr/lib64/python2.6/pydoc.pyRLs cCs|i|||S(s*Produce text documentation for a property.(RL(R R#R*R4RG((s/usr/lib64/python2.6/pydoc.pyRscCs|i|||S(s1Produce text documentation for a data descriptor.(RL(R R#R*R4RG((s/usr/lib64/python2.6/pydoc.pyR sc Cs|i|}|oO|o |dpd|}|t|} | djo|| d}qen|o|i|dpd|}|dj o!|d|it|7}n|S(s-Produce text documentation for a data object.s = Ris...s N(RR%RwR\RyR+( R R#R*R4RR7R&RRptchop((s/usr/lib64/python2.6/pydoc.pyRs % !N(RRRSRtRsRRwRyRR\RRRRaRRLRRR(((s/usr/lib64/python2.6/pydoc.pyRus     dq + cCstat|dS(sCThe first time this is called, determine what kind of pager to use.N(tgetpagertpager(R3((s/usr/lib64/python2.6/pydoc.pyRs cCsttitij otStii ptii otSdti joDti djodSti i ddjodSdSnti i ddjotSti djpti i d od St td otid d jodSddk}|i\}}ti|z:t td o"tid|d jodStSWdti|XdS(s2Decide what method to use for paging through text.tPAGERRcSstt|tidS(R(t tempfilepagertplainRR(R3((s/usr/lib64/python2.6/pydoc.pyR*stTERMtdumbtemacscSstt|tidS(R(t pipepagerRRR(R3((s/usr/lib64/python2.6/pydoc.pyR,scSst|tidS(R(RRR(R3((s/usr/lib64/python2.6/pydoc.pyR.stos2cSstt|dS(smore <(RR(R3((s/usr/lib64/python2.6/pydoc.pyR2stsystems(less) 2>/dev/nullicSs t|dS(tless(R(R3((s/usr/lib64/python2.6/pydoc.pyR4siNs more "%s"cSs t|dS(tmore(R(R3((s/usr/lib64/python2.6/pydoc.pyR;s(RR(RR(RRtstdoutRtFileTypet plainpagertstdintisattyRRR(RvRZRRttempfiletmkstempR~tttypagertunlink(RtfdR((s/usr/lib64/python2.6/pydoc.pyR"s0" #&  *cCstidd|S(s%Remove boldface formatting from text.s.R(R!R"(R3((s/usr/lib64/python2.6/pydoc.pyRAscCsGti|d}y|i||iWntj onXdS(s3Page through text by feeding it to another program.twN(RtpopentwriteR~Ry(R3tcmdtpipe((s/usr/lib64/python2.6/pydoc.pyREs  cCspddk}|i}t|d}|i||izti|d|dWdti|XdS(s<Page through text by invoking a program on a temporary file.iNRs "R(RtmktempRxRR~RRR(R3RRRRo((s/usr/lib64/python2.6/pydoc.pyRNs    c Cstt|d}yDddk}tii}|i|}|i|d}Wn(tt fj od}d}nXzCt i i ddd}}tiit|| ddx||otiid tii|}|djotiid Pn;|djo-tiid ||d|d}qn|djo)|||}|djo d}qntiidt||||!dd||}qWWd|o|i||i|nXdS(s%Page through text on a text terminal.s iNcSstiidS(i(RRR(((s/usr/lib64/python2.6/pydoc.pyRbscSstiid d S(ii(RRRn(((s/usr/lib64/python2.6/pydoc.pyRestLINESiis -- more --tqtQs s RrtBsi(RR(s s (RrRs(RRtttyRRtfilenot tcgetattrt setcbreakRRR\RRRvRRRtflusht tcsetattrt TCSAFLUSH( R3R'RRtoldtgetcharRtincR((s/usr/lib64/python2.6/pydoc.pyRZsB   !        ,cCstiit|dS(s>Simply print unformatted text. This is the ultimate fallback.N(RRRR(R3((s/usr/lib64/python2.6/pydoc.pyRscCs^ti|oJ|itijo d|iSt|do d|iSd|iSnti|o d|iSti|o!d|ii |ii|ifSti |o!d|ii |ii|ifSti |o d|iSti |o d |iSti |o d |iSt|tijod |iiSt|iS( s/Produce a short description of the given thing.sbuilt-in module RUspackage smodule sbuilt-in function sgetset descriptor %s.%s.%ssmember descriptor %s.%s.%ssclass s function smethod s instance of (RR,RRRRR.Rt __objclass__RRR-R/R=RRt InstanceTypeR(tthing((s/usr/lib64/python2.6/pydoc.pytdescribes2        c Cs g}t|dD]}|o ||qq~}d\}}xU|t|joAtt||d d|}|o||d}}qDPqDW|oJ|}x<||D]0}yt||}Wqtj odSXqW|Stt|ott|SdS(s@Locate an object by name or dotted path, importing as necessary.RiiN(Ni( RR\R%RRRFRRRY( RRRRR6Rtnt nextmoduleR#((s/usr/lib64/python2.6/pydoc.pytlocates&5    t_OldStyleClasscBseZRS((RR(((s/usr/lib64/python2.6/pydoc.pyRscCs\t|to2t||}|ptd|n||fS|t|ddfSdS(sDGiven an object or a path to an object, get the object and its name.s$no Python documentation found for %rRN(RR+RRRFR\(RRR#((s/usr/lib64/python2.6/pydoc.pytresolves  s Python Library Documentation: %scCsBt||\}}t|}ti|}|o,d|jo|d||id 7}n*|o"||j o|d|i7}nt|tjo |i}n{ti |pMti |p=ti |p-ti |pti |p t|tpt|}|d7}n||dti||S(sBRender text documentation, given an object or a path to an object.Rs in s in module s objects (RRRR-RRRt_OLD_INSTANCE_TYPERR,R-R.RRRRR3R(RRRR#R*RR((s/usr/lib64/python2.6/pydoc.pyt render_docs$   cCsAytt|||Wn ttfj o}|GHnXdS(sCDisplay text documentation, given an object or a path to an object.N(RRRR(RRRRJ((s/usr/lib64/python2.6/pydoc.pyR&scCsytt||\}}tit|ti||}t|dd}|i||idG|dGHWn tt fj o}|GHnXdS(s<Write HTML documentation to a file in the current directory.s.htmlRtwroteN( RthtmlRRRRxRR~RR(RRR#R*RRoRJ((s/usr/lib64/python2.6/pydoc.pytwritedocs$  RcCsN|djo h}nx0ti|g|D]\}}}t|q-WdS(sAWrite out HTML documentation for all modules in a directory tree.N(R\R0t walk_packagesR(RtpkgpathtdoneR>R)R?((s/usr/lib64/python2.6/pydoc.pyt writedocss  tHelpercBseZhdd6dd6d(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.6Zhd>d76d?dL6d@d 6dAdM6dBdZ6dCd[6dDd^6Zhd_d>6d`d;6dadb6dcdd6dedf6dgdh6didj6d7dk6dldm6dndo6dpdq6drds6drdt6dudv6dudw6ZxfeiD]X\ZZxIeD]AZei eeZ ee joe dxeZ ne ee>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 PRIVATENAMESRYsPRIVATENAMES SPECIALMETHODSRXt 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 PRIVATENAMESR~t 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.6/pydoc.pyRgs cCs|iptiS((RkRR(R ((s/usr/lib64/python2.6/pydoc.pyRscCs|iptiS((RlRR(R ((s/usr/lib64/python2.6/pydoc.pyRscCs+tidddjo |dSdS(Niit?Rs(Rtstack(R ((s/usr/lib64/python2.6/pydoc.pyt__repr__scCsF|dj o|i|n%|i|i|iiddS(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. (R\thelptintrotinteractRnR(R trequest((s/usr/lib64/python2.6/pydoc.pyRNs     c Cs|iidxtoy|id}|pPnWnttfj oPnXtt|dddd}t|djoPn|i |qWdS( Ns shelp> RRRRtquit(Rsquit( RnRRitgetlinetKeyboardInterrupttEOFErrorRR5RRr(R Ru((s/usr/lib64/python2.6/pydoc.pyRts cCsL|itijo t|S|ii||ii|iiSdS(s.Read one line, using raw_input when available.N(RmRRt raw_inputRnRRRn(R tprompt((s/usr/lib64/python2.6/pydoc.pyRws   cCst|tdjo>|i}|djo|iq|djo|iq|djo|iq|djo|iq|djo|iq|d djo|it|d q||ijo|i |q||i jo|i |q||i jo|i |q|ot |d qn)t|to |nt |d |iid dS( NRRrtkeywordstsymbolsttopicsR}ismodules is Help on %s:s (RRRst listkeywordst listsymbolst listtopicst listmodulesRR}t showsymbolR|t showtopicR~R&RRRnR(R Ru((s/usr/lib64/python2.6/pydoc.pyRrs4        cCs|iidtid dS(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/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". i(RnRRR(R ((s/usr/lib64/python2.6/pydoc.pyRss iiPc Cs|}|i||}t||d|}xt|D]}xt|D]~}|||}|t|joW|ii||||djo.|iidd|dt||qqSqSW|iidq@WdS(NiRs (R2R%RRnR( R titemstcolumnsRtcolwRtrowRR((s/usr/lib64/python2.6/pydoc.pyRs    6cCs*|iid|i|iidS(NsN Here is a list of the Python keywords. Enter any keyword to get more help. (RnRRR|RE(R ((s/usr/lib64/python2.6/pydoc.pyR s cCs*|iid|i|iidS(Nsx Here is a list of the punctuation symbols which Python assigns special meaning to. Enter any symbol to get more help. (RnRRR}RE(R ((s/usr/lib64/python2.6/pydoc.pyRs cCs*|iid|i|iidS(NsN Here is a list of available topics. Enter any topic name to get more help. (RnRRR~RE(R ((s/usr/lib64/python2.6/pydoc.pyRs c Csyddk}Wn$tj o|iiddSX|ii||ii|}|p|iidt|dSt|tdjo|i ||S|\}}y|i|}Wn.t j o"|iidt|dSXt t |d|o|pdd|}n|ooddk }ddk} |i } | i| idtt|dd|iid | indS( Niso Sorry, topic and keyword documentation is not available because the module "pydoc_topics" could not be found. sno documentation found for %s Rs RsRelated help topics: s, s %s (t pydoc_topicsRRnRR~RvR|RRRtKeyErrorRRtStringIOt formattert DumbWritertsend_flowing_dataRRtgetvalue( R ttopict more_xrefsRttargettlabeltxrefsR&RRtbuffer((s/usr/lib64/python2.6/pydoc.pyRs6 !  cCs9|i|}|id\}}}|i||dS(NR(R}t partitionR(R tsymbolRRRYR((s/usr/lib64/python2.6/pydoc.pyR?s cs|o|iidt|nk|iidh}|dfd}tid||i|i|iiddS(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... cSsR|o#|ddjo|d d}nt|ddjod||>RRRRRRs<=s>=s==s!=s<>(RRs<=s>=s==s!=s<>(RPR( s+=s-=s*=s/=s%=s&=s|=s^=s<<=s>>=s**=s//=(s<>RRRR(RR(stypessRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect(R s4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES(sstring-methodssSTRINGS FORMATTING(RR(R s:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES(RsINTEGER FLOAT COMPLEX TYPES(Rs int range(Rs float math(Rs complex cmath(Rs%STRINGMETHODS FORMATTING xrange LISTS(Rs def TYPES(Rsclass def CLASSES TYPES(sbltin-code-objectsscompile FUNCTIONS TYPES(sbltin-type-objectss types TYPES(sbltin-null-objectR(sbltin-ellipsis-objectR%(sbltin-file-objectsR(R'R(stypess!class SPECIALMETHODS PRIVATENAMES(R)R(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(R1s 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(R7s%NAMESPACES DYNAMICFEATURES EXCEPTIONS(R9s*global ASSIGNMENT DELETION DYNAMICFEATURES(sdynamic-featuresR(s exceptionsstry except finally raise(scoercion-rulesR=(R?R>(R@skeywords SPECIALIDENTIFIERS(s id-classesR(satom-identifiersR(s atom-literalssHSTRINGS BACKQUOTES NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALS(REsTUPLES LITERALS(stypesseq-mutableRG(RIsLISTS LITERALS(RJRK(sdictsDICTIONARIES LITERALS(sstring-conversionssrepr str STRINGS LITERALS(sattribute-referencess(getattr hasattr setattr ATTRIBUTEMETHODS(RMR4(ROR(RPR+(RRR+(RSR+(RTR+(RVR+(RXR+(RYsEXPRESSIONS BASICMETHODS(RZsEXPRESSIONS TRUTHVALUE(R\R(R^R6(Rdsfor while break continue(Rfs if while and or not BASICMETHODS(RgRh(scontext-managersRN(RRR|t_symbols_inverseR}t iteritemsRtsymbols_RRvR~R\RgRRmRnRqRNRtRwRrRsRRRRRRR(((s/usr/lib64/python2.6/pydoc.pyRsB              tScannercBs eZdZdZdZRS(sA generic tree iterator.cCs)||_g|_||_||_dS(N(trootststatetchildrentdescendp(R RRR((s/usr/lib64/python2.6/pydoc.pyRgcs   cCs|ip@|ipdS|iid}||i|fg|_n|id\}}|p|ii|iS|id}|i|o#|ii||i|fn|S(Nii(RRR\R RtnextRR(R troottnodeRtchild((s/usr/lib64/python2.6/pydoc.pyRis    #(RRRSRgR(((s/usr/lib64/python2.6/pydoc.pyRas RcBs eZdZddddZRS(s7An interruptible scanner that searches module synopses.cCs-|ot|}nt|_h}xtiD]}|djod||<|djo|d|dqtt|ipddd}t t|d||djo|d||qq0q0WxCt i d|D]/\}}} |ioPn|djo|d|dq|i |} t | do^d dk} t| i| i|pd}t | d o| i|} qd} n<| i|} | ipdid}t| d d} t t|d||djo|| ||qqW|o |ndS( Nt__main__iRs is - Rt get_sourceit get_filenameRT(RRjRvRRR\RRRSRR0Rt find_moduleRRRqRRR{R|RF(R RRIt completerRtseenR)RR>R?tloaderRRR((s/usr/lib64/python2.6/pydoc.pyR|sF     #$    $N(RRRSR\R(((s/usr/lib64/python2.6/pydoc.pyRysc Csbd}d}yddk}Wntj onX|idti||d|dS(sAPrint all the one-line module summaries that contain a substring.cSs;|ddjo|d d}n|G|od|GHdS(Nis .__init__s (package)s- ((RR)R((s/usr/lib64/python2.6/pydoc.pyRscSsdS(N((R)((s/usr/lib64/python2.6/pydoc.pyRsiNtignoreR(twarningsRtfilterwarningsRR(RIRRR((s/usr/lib64/python2.6/pydoc.pyRs   c Csddk}ddk}ddk}d|ifdY}d|ifdY}d|ifdY}|i|_||_||_z:y|||i Wnt |i fj onXWd|o |nXdS(NitMessagecBseZddZRS(icSsf|i}|ididi||||id|_|id|_|i|idS(Niscontent-transfer-encodings content-type(RRBRgt getheadertencodingheadert typeheadert parsetypet parseplist(R tfptseekableR((s/usr/lib64/python2.6/pydoc.pyRgs  ! (RRRg(((s/usr/lib64/python2.6/pydoc.pyRst DocHandlercBs#eZdZdZdZRS(cSsayG|id|idd|i|iiti||Wntj onXdS(Nis Content-Types text/html(t send_responset send_headert end_headerstwfileRRRRy(R RR((s/usr/lib64/python2.6/pydoc.pyt send_documents   c Ss|i}|ddjo|d }n|d djo|d}n|o|djoyt|dd}Wn5tj o)}|i|tit|dSX|o&|it|ti||q|i|dt |nti dd d }d }t d t i }ti||}d tidd d|g}h} x*t iD]} |iti| | qhW|t|d}|id|dS(Nis.htmliRRRs$no Python documentation found for %ss?Python: Index of Moduless#ffffffs#7799eecSsd||fS(Ns%s((R*((s/usr/lib64/python2.6/pydoc.pyt bltinlinkscSs |djS(R((RP((s/usr/lib64/python2.6/pydoc.pyRss

sBuilt-in Moduless#ee77aas

pydoc by Ka-Ping Yee <ping@lfw.org>sIndex of Modules(RRRRRRR+RRRRRXRRRRRRrR( R RR?RJRRtnamesRtindicesRR((s/usr/lib64/python2.6/pydoc.pytdo_GETs> &        cWsdS(N((R R((s/usr/lib64/python2.6/pydoc.pyt log_messages(RRRRR(((s/usr/lib64/python2.6/pydoc.pyRs  #t DocServercBs#eZdZdZdZRS(cSshtidjodpd}d|f|_d||f|_||_|ii||i|idS(Ntmacs 127.0.0.1t localhostRs http://%s:%d/(RR(taddressRRRKRgthandler(R tportRthost((s/usr/lib64/python2.6/pydoc.pyRgs  cSsmddk}t|_xQ|ipF|i|iigggd\}}}|o|iqqWdS(Nii(tselectRjRvtsocketRthandle_request(R Rtrdtwrtex((s/usr/lib64/python2.6/pydoc.pytserve_until_quits   -cSs/|ii||io|i|ndS(N(RKtserver_activateR(R ((s/usr/lib64/python2.6/pydoc.pyRs (RRRgRR(((s/usr/lib64/python2.6/pydoc.pyRs  ( tBaseHTTPServert mimetoolsRRtBaseHTTPRequestHandlert HTTPServerRKRt MessageClassRRxterror( RRRRRRRRR((s/usr/lib64/python2.6/pydoc.pytserves$ .    c CsqdddY}ddk}y8|i}z||}|iWd|iXWntj onXdS(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|_ddk}|i||_|i|idd|_|i |iddd|i dd|_ |i |iddd|i dd|_ |i||_|i|idd |_|i|i|_|iid |i|i |idd d d d|idd|_tidjo|iiddn|iid|iid|i |iidddd|i idddddd|i idddddd|iidddd|iidd|iidddddd|iidddd|iidtidjodpdf}|i|d|dd|_|iid|i|iid |i|i |d!d"d|ii!|_"|ii#d#|i"i$|i||_%|i |i%dd$d|i|_&|i |i%dd%d|i'|_(|i&idddddd|i(idddddd|ii)|ii*|_+|ii,|_-|ii.|ii.|ii.|i%i.|_/|i+|i/|_0|_1d |_2|ii3d&|i+|i-f|ii4|i+|i-|ii5i6ddk7}|i8d't9d(||i:|i fi;dS()NiR3sStarting server... s open browsertcommandRtdisableds quit servings Search forststoptpadyiRtsidetrighttpydoctWM_DELETE_WINDOWttoptfillRPtlefttexpandit helveticaii tfonttheightis storienttverticaltyscrollcommandsgo to selecteds hide resultss%dx%dRR(<twindowR\tservertscannertTkintertFramet server_frmtLabelt title_lbltButtonRxtopen_btnRvtquit_btnt search_frmt search_lbltEntryt search_enttbindRRtstop_btnRR(tpackRtprotocolt focus_settListboxt result_lstRtgotot Scrollbartyviewt result_scrtconfigRt result_frmtgoto_btnthidethide_btnRCt winfo_widthtminwidtht winfo_heightt minheighttwinfo_reqheightt bigminheighttbigwidtht bigheighttexpandedt wm_geometryt wm_minsizettkt willdispatcht threadingtThreadRtreadyR (R RRRRR((s/usr/lib64/python2.6/pydoc.pyRgsp     ! #  &    cSsM||_|iidd|i|iidd|iidddS(NR3sPython documentation server at Rtnormal(RRR RRR(R R((s/usr/lib64/python2.6/pydoc.pyRYs   cSs|p |ii}yddk}|i|Wntj otidjotid|qtidjo7yddk }Wntj oqX|i |qtid|}|otid|qnXdS(NiRs start "%s"Rs netscape -remote "openURL(%s)" &snetscape "%s" &( RRt webbrowserRxRRR(RRtict launchurl(R teventRRR trc((s/usr/lib64/python2.6/pydoc.pyRx`s  cSs+|iod|i_n|iidS(Ni(RRvR(R R"((s/usr/lib64/python2.6/pydoc.pyRvps cSs|ii}|iidd|iidd|iidd||ii|iidd|iidd |i idd |i d dk }|i od |i _ nt|_ |id |i id|i||ifidS(NRRRRR3sSearching for "%s"...RiR RiiRR(RRvRRR RtforgetRtdeleteR RRRRvRRRRCRR (R R"RIR((s/usr/lib64/python2.6/pydoc.pyRus     cSsI|ddjo|d d}n|iid|d|pddS(Nis .__init__s (package)R s - s(no description)(Rtinsert(R RR)R((s/usr/lib64/python2.6/pydoc.pyRCs cSs'|iod|i_d|_ndS(Ni(RRvR\(R R"((s/usr/lib64/python2.6/pydoc.pyRs  cSsd|_|iidd|iidd|iidddddd tid jo|ii n|iid d dS( NR3s Search forRRRRRPRiRRR( R\RRR RRRR(RR$(R ((s/usr/lib64/python2.6/pydoc.pyRs cSs|iidddS(NRR(R R (R R"((s/usr/lib64/python2.6/pydoc.pyRscSs\|ii}|oBt|ii|dd}|id|ii|dndS(NiRs.html(Rt curselectionRRvRxRR(R R"t selectionR)((s/usr/lib64/python2.6/pydoc.pyRs cSs|ipdS|ii|ii|ii|ii|_|ii|_ |ii d|i |i f|ii |i |i d|_dS(Ns%dx%di(RR R$RRRRRRRRRRR(R ((s/usr/lib64/python2.6/pydoc.pytcollapses     cSs|iodS|iidddd|iidddd|iiddddd d |iid |i|if|ii |i |i d |_dS( NRtbottomRRPRtyRtbothRis%dx%d( RR RRRRRRRRRR(R ((s/usr/lib64/python2.6/pydoc.pyRs  cSs|i|idS(N(RR)(R R"((s/usr/lib64/python2.6/pydoc.pyR s N(RRRgRR\RxRvRRCRRRRR)RR (((s/usr/lib64/python2.6/pydoc.pyRs E         iN((RtTktmainlooptdestroyRx(RRRtgui((s/usr/lib64/python2.6/pydoc.pyR0s   cCs&t|tot|tidjS(Ni(RR+RRtsep(RP((s/usr/lib64/python2.6/pydoc.pytispathsc Csddk}dddY}dtijoTtiitid}|tijotii|ntiiddny|itidd \}}d}x|D]\}}|d jot|dS|d joSyt |}Wnt j o |nXd } d } t || | dS|djo d}qqW|p |nx|D]} t | o"tii |  od| GHPnyt | o#tii| ot| } n|o<t | o!tii| ot| q%t| nti| Wqmtj o} | GHqmXqmWWnV|i|fj oAtiitid} d| ti| | | tifGHnXdS(s@Command-line interface (looks at sys.argv to decide what to do).iNtBadUsagecBseZRS((RR(((s/usr/lib64/python2.6/pydoc.pyR3sRiRisgk:p:ws-ks-pcSsd|iGHdS(Nspydoc server ready at %s(R(R((s/usr/lib64/python2.6/pydoc.pyRscSs dGHdS(Nspydoc server stopped((((s/usr/lib64/python2.6/pydoc.pytstoppedss-wsfile %r does not existscpydoc - 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. %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. ((tgetoptRRRtdirnametargvtremoveR&RRt ValueErrorRR2texistsRhRRRRRrRRRR1(R5R3t scriptdirtoptsRtwritingtopttvalRRR4targRJR((s/usr/lib64/python2.6/pydoc.pytclis\          !   R(XRSR#RRR%RRzRR!RRRYR0RRtstringRRRRRRRRt tracebackR t collectionsR RRRRR(R+R2R5R:Rt IGNORECASER;R<R@RDRQR\R_RfRlRqRt ExceptionRRRRRRRtRuRRRRRRRRRR3RRRRRRR&RRRRrRRRRR0R2RAR(((s/usr/lib64/python2.6/pydoc.pyt s `:             28* R    &       h , [  M