grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026î   fc’ã@s1dZdgZdZdZdZddlZddlZddlZddl Zddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlmZddlmZdd lmZd d „Zd d „Zdd„Zdd„Zdd„Z dd„Z!dd„Z"ej#dej$ƒZ%dd„Z&dd„Z'dd„Z(dd „Z)d!d"„Z*ddd#d$„Z+d%d&„Z,d'd(„Z-d)d*„Z.id+d,„Z/Gd-d.„d.e0ƒZ1d/d0„Z2did1d2„Z3Gd3d4„d4ƒZ4Gd5d6„d6eƒZ5Gd7d8„d8e4ƒZ6Gd9d:„d:eƒZ7Gd;d<„d<e4ƒZ8Gd=d>„d>e8ƒZ9d?d@„a:dAdB„Z;dCdD„Z<dEdF„Z=dGdH„Z>dIdJ„Z?dKdL„Z@dMdN„ZAdOdP„ZBddQdR„ZCe8ƒZDe9ƒZEe6ƒZFddSdT„ZGdUdddVdW„ZHdUdddXdY„ZIddZd[„ZJd\dd]d^„ZKGd_d`„d`ƒZLeLƒZMGdadb„dbƒZNdcdd„ZOdedf„ZPdgdhdi„ZQddjdkdldm„ZRdndo„ZSdpdq„ZTeUdrkr-eTƒndS)sa•Generate Python documentation in HTML or text for interactive use. At the Python interactive prompt, calling help(thing) on a Python object documents the object, and calling help() starts up an interactive help session. 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 the given port on the local machine. Port number 0 can be used to get an arbitrary unused port. Run "pydoc -b" to start an HTTP server on an arbitrary unused port and open a Web browser to interactively browse documentation. The -p option can be used with the -b option to explicitly specify the server 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 http://docs.python.org/X.Y/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. ÚhelpzKa-Ping Yee z26 February 2001zÔGuido 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. éN)Údeque)ÚRepr)Úformat_exception_onlycCs‰g}g}xvtjD]k}tjj|p.dƒ}tjj|ƒ}||krtjj|ƒr|j|ƒ|j|ƒqqW|S)zAConvert sys.path into a list of absolute, existing, unique paths.Ú.)ÚsysÚpathÚosÚabspathÚnormcaseÚisdirÚappend)ÚdirsZnormdirsÚdirZnormdir©rú*/opt/alt/python34/lib64/python3.4/pydoc.pyÚpathdirsLs rcCsCtj|ƒptj|ƒ}|r?tjdd|jƒƒpBdS)z-Get the doc string or comments for an object.z^ * Ú)ÚinspectÚgetdocZ getcommentsÚreÚsubÚrstrip)ÚobjectÚresultrrrrXsrcCsŒ|jƒjdƒ}t|ƒdkr5|ddfSt|ƒdkry|djƒ ry|ddj|dd…ƒfSddj|ƒfS)z>Split a doc string into a synopsis line (if any) and the rest.Ú érréN)ÚstripÚsplitÚlenrÚjoin)ÚdocÚlinesrrrÚsplitdoc]s #!r$cCs0|j}|j|kr,|jd|}n|S)z@Get a class name and qualify it with a module name if necessary.r)Ú__name__Ú __module__)rÚmodnameÚnamerrrÚ classnamefs r)cCsYtj|ƒpWtj|ƒpWtj|ƒpWtj|ƒpWtj|ƒpWtj|ƒ S)z>Check if an object is of a type that probably means it's data.)rÚismoduleÚisclassÚ isroutineZisframeZ istracebackZiscode)rrrrÚisdatamsr-cGsAx:|r<|dj|j|dƒƒ}|dd…}qW|S)z/Do a series of global replacements on a string.rrrN)r!r)ÚtextZpairsrrrÚreplacess  r/cCsnt|ƒ|krjtd|ddƒ}td|d|ƒ}|d|…d|t|ƒ|d…S|S)zCOmit part of a string if needed to make it fit in a maximum length.rérNz...)r Úmax)r.ÚmaxlenZpreZpostrrrÚcramzs *r3z at 0x[0-9a-f]{6,16}(>+)$cCstjd|ƒS)z>Remove the hexadecimal id from a Python object representation.z\1)Ú _re_stripidr)r.rrrÚstripidƒsr5cCs:tj|ƒp9tj|ƒp9tj|ƒp9tj|ƒS)N)rÚ isfunctionÚismethodÚ isbuiltinZismethoddescriptor)ÚobjrrrÚ_is_some_methodˆsr:cCsRtj|ƒrdStj|ƒrNt|ddƒ}tj|ƒpL|dk SdS)zo Returns True if fn is a bound method, regardless of whether fn was implemented in Python or in C. TÚ__self__NF)rr7r8Úgetattrr*)ÚfnÚselfrrrÚ_is_bound_methodŽs r?cCsˆi}x*tj|tƒD]\}}d||ú __version__ú__file__ú__path__ú __builtins__ú __credits__ú__doc__ú__name__ú __cached__ú __author__ú __loader__ú __package__ú __qualname__ú __slots__ú __module__ú__spec__ú__date__)Ú startswithÚendswithÚhasattr)r(Úallr9rrrÚ visiblename¶s   rucCsag}xTtj|ƒD]C\}}}}tj|ƒr@d}n|j||||fƒqW|S)zCWrap inspect.classify_class_attrs, with fixup for data descriptors.zdata descriptor)rÚclassify_class_attrsÚisdatadescriptorr )rÚresultsr(ÚkindÚclsrHrrrrvÊs " rvcCsStjj|ƒrOx:dD]/}tjjtjj|d|ƒƒrdSqWndS)z3Guess whether a path refers to a package directory.ú.pyú.pycú.pyoÚ__init__TF)r{r|r})r rr Úisfiler!)rÚextrrrÚ ispackageÕs  % r�cCs|jƒ}x=|dd…dks2|jƒ rK|jƒ}|sPqqW|jƒ}|dd…dkr�|dd…}n|dd…dkr|dd…}|d d…dkrÐ|dd …}nx&|jƒsø|jƒ}|sÓPqÓqÓW|jdƒdjƒ}nd}|S) Nrú#ézr"""r0z"""ú\réÿÿÿÿr…)Úreadlinerr)ÚfileÚlinerrrrÚsource_synopsisÝs& &   r‰c CsŽtj|ƒj}|j|dƒ\}}|dksB||krŠ|jttjjƒƒrltjj }n0|jttjj ƒƒr–tjj }nd}|dkrðyt j |ƒ}Wntk rÓdSYnX|�t|ƒ}WdQXn‡|d|ƒ}tjjd|d|ƒ}tjj|ƒ} y| jƒ} Wn dSYnXtjd=| jrq| jjƒdnd}||f||rŸÚexc_inforrrr~s zErrorDuringImport.__init__cCs#|jj}d|j||jfS)Nzproblem in %s - %s: %s)r§r%rŸrH)r>r§rrrÚ__str__s zErrorDuringImport.__str__N)r%r&r[rUr~rªrrrrr¦s  r¦c Csûtjj}t|dƒ�"}||jt|ƒƒk}WdQXtjj|ƒ}tjj |ƒ\}}|r‡tj j ||ƒ}ntj j ||ƒ}tjj ||d|ƒ}tj j|ƒ} y| jƒSWnt|tjƒƒ‚YnXdS)zGs zsafeimport..Nrr)rr�Úbuiltin_module_namesÚ __import__r©r¦rVÚ SyntaxErrorrŸÚ ImportErrorr(rr<ÚAttributeError) rÚ forceloadr ZsubsrGr¤r§rHr¨ÚinfoÚpartr)rrÚ safeimport3s.   r¾c@szeZdZejjddejdd…ƒZddd„Z ddd„Z e Z Z Z ZZZd d „ZdS) ÚDocÚ PYTHONDOCSz$http://docs.python.org/%d.%d/libraryNrc GsÞ||f|}tj|ƒr,|j|ŒStj|ƒrH|j|ŒSyXtj|ƒrg|j|ŒStj|ƒrƒ|j|ŒStj|ƒrŸ|j |ŒSWnt k r´YnXt |t ƒrÑ|j |ŒS|j|ŒS)z%Generate documentation for an object.)rÚisgetsetdescriptorÚdocdataÚismemberdescriptorr*Ú docmoduler+Údocclassr,Ú docroutinerºÚ isinstanceÚpropertyÚ docpropertyÚdocother)r>rr(ÚargsrrrÚdocumentis"      z Doc.documentcGs9d|odt|ƒt|ƒjf}t|ƒ‚dS)z+Raise an exception for unimplemented types.z.don't know how to document object%s of type %sú N)ÚreprÚtyper%Ú TypeError)r>rr(rËÚmessagerrrÚfail{s&zDoc.failcCs*ytj|ƒ}Wntk r-d}YnXtjjd|jƒ}tjjt j ddt j dd…ƒ}t |t tƒƒr |jdksÄ|j|ƒr |jtjj|dƒƒ r |jdkr |jdƒrd|jdƒ|jf}q&tjj||jdƒ}nd}|S)z*Return the location of module docs or Nonez (built-in)rÀÚlibz python%d.%dNrÚerrnoÚ exceptionsÚgcÚimpÚmarshalÚposixÚsignalrÚ_threadÚ zipimportz site-packagesú xml.etreeútest.pydoc_modzhttp://z%s/%sú/z.html) zerrnoz exceptionszgcr×zmarshalzposixzsignalzsysz_threadrÜ)rÝrÞ)rÚ getabsfilerÐr Úenvironr�rÀrr!rÚbase_exec_prefixÚ version_inforÇrÏr%rqr)r>rr‡ÚdoclocZbasedirrrrÚ getdoclocƒs&   z Doc.getdocloc)r%r&r[r rár�rrãrÀrÌrÒrÄrÅrÆrÊrÉrÂrårrrrr¿cs  r¿c@sjeZdZdZdd„Zdd„Zdd„Zdd „Zd d „ZeZ d d „Z eZ dS)ÚHTMLReprzBClass for safely making an HTML representation of a Python object.cCs:tj|ƒd|_|_d|_d|_|_dS)Néé éd)rr~ÚmaxlistÚmaxtupleÚmaxdictÚ maxstringÚmaxother)r>rrrr~¢s  zHTMLRepr.__init__cCst|ddddddƒS)Nú&z&úz>)r/)r>r.rrrÚescape¨szHTMLRepr.escapecCstj||ƒS)N)rrÎ)r>rrrrrΫsz HTMLRepr.reprcCs„tt|ƒdƒr_ddjt|ƒjjƒƒ}t||ƒr_t||ƒ||ƒSn|jttt |ƒƒ|j ƒƒS)Nr%Úrepr_r_) rsrÏr!r%rr<ròr3r5rÎrî)r>rNÚlevelÚ methodnamerrrÚrepr1®s "zHTMLRepr.repr1cCst||jƒ}t|ƒ}d|krcdt|ddƒkrcd|d|j|ƒ|dStjdd|j|ƒƒS)Nr„z\\rÚrrz-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)z\1)r3rírÎr/ròrr)r>rNrôÚtestÚtestreprrrrÚ repr_stringµs $! zHTMLRepr.repr_stringc CsOy)|jttt|ƒƒ|jƒƒSWn|jd|jjƒSYnXdS)Nz <%s instance>)ròr3r5rÎríÚ __class__r%)r>rNrôrrrÚ repr_instanceÂs)zHTMLRepr.repr_instanceN) r%r&r[rUr~ròrÎrörúÚrepr_strrüZ repr_unicoderrrrræ s       ræc@s¥eZdZdZeƒZejZejZdd„Zddd„Z dddd d d „Z d d „Z dd„Z ddd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zdiiidd „Zdd!d"„Zddd#d$„Zddiid%d&„Zd'd(„Zddiiidd)d*„Zd+d,„Zdddd-d.„Zddd/d0„Zdddd1d2„Zdd3d4„ZdS)5ÚHTMLDocz'Formatter class for HTML documentation.cCsd||fS)zFormat an HTML page.zÚ Python: %s %s r)r>ÚtitleÚcontentsrrrÚpageÓsz HTMLDoc.pagercCsd|||||pdfS)zFormat a page heading.a'
 
 
%s
%s
z r)r>rÿÚfgcolÚbgcolZextrasrrrÚheadingÝs zHTMLDoc.headingéNz c Csz|dkr!dd|d}nd|||f} |rW| d||||f} n| d|||f} | d|S) z Format a section with a heading.Nzz zzË

zR z( z'
 
%s
%s %s
%s
%s%s%s
r) r>rÿrrrÚwidthZpreludeZ marginaliaZgaprrrrÚsectionès zHTMLDoc.sectioncGsd|}|j||ŒS)z$Format a section with a big heading.z%s)r)r>rÿrËrrrÚ bigsectionþs zHTMLDoc.bigsectionc Cs7|j|jƒƒ}t|ddddddddƒ S)z!Format literal preformatted text.z z rÍz rz
)ròÚ expandtabsr/)r>r.rrrÚ preformatszHTMLDoc.preformatrƒcCs¬d}t|ƒ|d|}xƒt|ƒD]u}|dd|}xPt|||||ƒD]3}|t|ƒkr_||||ƒd}q_q_W|d}q+Wd|S)z0Format a list of items into a multi-column list.rrzréz
zz7%s
)r Úrange)r>ÚlistÚformatZcolsrÚrowsÚcolÚirrrÚ multicolumn s"zHTMLDoc.multicolumncCsd|S)Nz%sr)r>r.rrrÚgreysz HTMLDoc.greycGs3x,|D]$}||krd|||fSqW|S)z:Make a link for an identifier, given name-to-URL mappings.z%sr)r>r(ZdictsÚdictrrrÚnamelinks  zHTMLDoc.namelinkcCsm|jtjj|jƒ}}t||ƒr`t||ƒ|kr`d|j|t||ƒfSt||ƒS)zMake a link for a class.z%s)r%rr�r�r&rsr<r))r>rr'r(r¤rrrÚ classlinks $zHTMLDoc.classlinkcCsd|j|jfS)zMake a link for a module.z%s)r%)r>rrrrÚ modulelink&szHTMLDoc.modulelinkcCso|\}}}}|r%|j|ƒS|r>d||f}n d|}|r[d|}n|}d||fS)z;Make a link for a module or package to display in an index.z %s.%s.htmlz%s.htmlz"%s (package)z%s)r)r>Z modpkginfor(rr�ÚshadowedÚurlr.rrrÚ modpkglink*s   zHTMLDoc.modpkglinkcCsd||fS)zMake a link to source file.z%sr)r>rrrrrÚfilelink9szHTMLDoc.filelinkcCs|p |j}g}d}tjdƒ}xÀ|j||ƒ} | sIPn| jƒ\} } |j|||| …ƒƒ| jƒ\} } }}}}| rÎ|| ƒjddƒ}|jd||fƒn|rdt|ƒ}|jd||| ƒfƒnß|r:dt|ƒ}|jd||| ƒfƒn©|rŽ|| | d…d krz|jd |j ||ƒƒqã|jd |ƒnU|| | d…d krÊ|j|j ||||ƒƒn|j|j ||ƒƒ| }q-W|j|||d …ƒƒd j |ƒS)zƒMark up some plain text, given a context of symbols to look for. Each context dictionary maps object names to anchor names.rzD\b((http|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))ú"z"z%sz'http://www.rfc-editor.org/rfc/rfc%d.txtz(http://www.python.org/dev/peps/pep-%04d/rú(zself.zself.%sNr) ròrÚcompileÚsearchÚspanr Úgroupsr/Úintrr!)r>r.ròÚfuncsÚclassesrFrxÚhereÚpatternÚmatchÚstartÚendrtÚschemeZrfcZpepZselfdotr(rrrrÚmarkup=s<   " zHTMLDoc.markupc Cs d}xú|D]ò}t|ƒtfƒkrÇ|\}}|d}||j||ƒ}|rº||fkrºg}x'|D]} |j|j| |ƒƒqyW|ddj|ƒd}n|d}q t|ƒtgƒkr |d|j|||ƒ}q q Wd|S) zAProduce HTML for a class tree as given by inspect.getclasstree().rz"

rz, ú)z
z
%s
z
%s
)rÏrr r!Ú formattree) r>Útreer'ÚparentrÚentryÚcÚbasesÚparentsrIrrrr,hs       zHTMLDoc.formattreec#sÈ|j}y |j}Wntk r0d}YnX|jdƒ}g}xPtt|ƒdƒD]8}|jddj|d|d…ƒ||fƒq]Wdj||d.d…ƒ} d| } y7tj |ƒ} t j j | ƒ} ˆj | | ƒ} Wntk rd} YnXg}t|dƒr˜t|jƒ}|dd…d/kr{|d0d…d kr{|dd1…jƒ}n|jd ˆj|ƒƒnt|d ƒrÉ|jˆjt|jƒƒƒn|ré| d dj|ƒ} nˆj|ƒ}|dk rdtƒ}nd}ˆj| ddd| |ƒ}tj|tjƒ}gi}}x‹tj|tjƒD]t\}}|dk s¥tj|ƒpœ||krrt|||ƒræ|j||fƒd|||<||%sz)%sz (built-in)r]é ú$z Revision: z version %srTz (%s)z, z-
Module Referencerz#ffffffz#7799eezindex
r‚z.html#z#-z %sz

%s

rZrzPackage Contentsz#aa55cccsˆj|dƒS)Nr)r)Út)r>rrÚÑsz#HTMLDoc.docmodule..ÚModulescSsg|]\}}|‘qSrr)r³rGrHrrrrµÖs z%HTMLDoc.docmodule..ZClassesz#ee77aarÍZ Functionsz#eeaa77ZDataz#55aa55z
rPZAuthorrSZCreditsr…z $Revision: r…r…)6r%Ú__all__rºrr r r r!rràÚurllibÚparseZquoterrÐrsÚstrr]rròrTråÚlocalsrr@r*r+Ú getmodulerurAr&rr�r�r<r,r8r6r-r*rr ÚpkgutilÚ iter_modulesrZÚsortrrrr,Ú getclasstreerÌrPrS)#r>rr(ÚmodÚignoredrtÚpartsZlinksrZ linkednameÚheadrrrr¼Úversionrärr�r#ZcdictrGrHrIr'r¤r"ZfdictÚdatar"ÚmodpkgsÚimporterÚispkgrÚ classlistr)r>rrÄ{sÚ    -   ,"   "  ! + " $!"   !& &    zHTMLDoc.docmodulecsˆj}|p|}ˆj}g} | j‰G‡fdd†dƒ} | ƒ‰ttjˆƒƒ} t| ƒdkrňjƒˆdƒx+| D]#} ˆdˆj| ˆj ƒƒq‘Wˆdƒn‡‡‡‡‡‡‡‡fdd†} ‡‡‡‡fd d †}‡‡‡‡‡‡‡‡fd d †}‡fd d†t ˆƒDƒ}i‰x|D]w\}}}}d|d|ˆ|<}yt ˆ|ƒ}Wnt k r­YnXy|ˆ|.HorizontalRulecSs d|_dS)Nr)Úneedone)r>rrrr~sz1HTMLDoc.docclass..HorizontalRule.__init__cs#|jrˆdƒnd|_dS)Nz
r)rL)r>)ÚpushrrÚmaybes  z.HTMLDoc.docclass..HorizontalRule.maybeN)r%r&r[r~rNr)rMrrÚHorizontalRuleÿs  rOrz&
Method resolution order:
z
%s
z
csÃt||ƒ\}}|r¿ˆjƒˆ|ƒx�|D]‚\}}}}ytˆ|ƒ}Wn+tk rˆˆˆj||ˆƒƒYn&Xˆˆj||ˆˆˆˆˆƒƒˆdƒq6Wn|S)Nr)rOrNr<Ú ExceptionÚ_docdescriptorrÌ)ÚmsgÚattrsrKÚokr(ryÚhomeclsrH)r#r"ÚhrÚmdictrBrrMr>rrÚspills   zHTMLDoc.docclass..spillcslt||ƒ\}}|rhˆjƒˆ|ƒx6|D]+\}}}}ˆˆj||ˆƒƒq6Wn|S)N)rOrNrQ)rRrSrKrTr(ryrUrH)rVrBrMr>rrÚspilldescriptors$s   z*HTMLDoc.docclass..spilldescriptorsc st||ƒ\}}|r ˆjƒˆ|ƒxÚ|D]Ï\}}}}ˆjtˆ|ƒ|ˆƒ}t|ƒs�tj|ƒr–t|ddƒ} nd} | dkr¹ˆd|ƒnBˆjt|ƒˆj ˆˆˆƒ} d| } ˆd|| fƒˆdƒq6Wn|S)NrUz
%s
z
%sz
%s%s
r) rOrNrÊr<Úcallablerrwr*rr ) rRrSrKrTr(ryrUrHrIr")r#r"rVrWrBrrMr>rrÚ spilldata-s"    z#HTMLDoc.docclass..spilldatacs@g|]6\}}}}t|dˆƒr||||f‘qS)r9)ru)r³r(ryrzrH)rrrrµBs z$HTMLDoc.docclass..r‚ú-rcs|dˆkS)Nrr)r5)Ú thisclassrrr6[sz"HTMLDoc.docclass..z defined herezinherited from %sz:
rGcSs|dS)Nrr)r5rrrr6hsz Methods %scSs|ddkS)NrÚmethodr)r5rrrr6lszClass methods %scSs|ddkS)Nrz class methodr)r5rrrr6nszStatic methods %scSs|ddkS)Nrz static methodr)r5rrrr6pszData descriptors %scSs|ddkS)Nrzdata descriptorr)r5rrrr6rszData and other attributes %scSs|ddkS)NrrGr)r5rrrr6tsrz*class %sz/%s = class %sz(%s)z, z%s
 
z#000000z#ffc8d8r0)r%rAr rrÚgetmror rNrr&rvr<rPrÐÚpopleftrOÚbuiltinsrr@ÚAssertionErrorr!r*rr r)r>rr(rBr"r#rCÚrealnamer1rrOÚmrorIrXrYr[rSrGryrUrHÚanchorÚ inheritedÚtagrÿr2r"r) r#r"rVrWrBrrMr>r]rrÅôsŽ         ' '    !              $zHTMLDoc.docclasscCs|jd|j|ƒƒS)z)Format an argument default value as text.ú=)rrÎ)r>rrrrÚ formatvalueŠszHTMLDoc.formatvaluecCsf|j}|p|}|r$|jp'dd|} d} d} t|ƒrË|jj} |r„| |k rÈd|j| |ƒ} qÈqË|jdk r²d|j|jj|ƒ} qËd|j| |ƒ} n||krêd| |f} ne|r6||jkr6|j||kr6d |jd||f}d } n|}d | ||f} d}tj|ƒrÙytj|ƒ}Wnt t fk r—d}YnX|rÙt |ƒ}|d krÖd |} |d d…}qÖqÙn|sèd}n| |j |ƒ| o|j d| ƒ}| r d|S|jt|ƒ|j|||ƒ}|oQd|}d||fSdS)z;Produce HTML documentation for a function or method object.rr\rz from Nz method of %s instancez unbound %s methodz$%sz%srz)%s = %szz$%s lambda z(...)z'%sz
%s
z
%s
z
%s
%s
r…)r%r?r;rûrÚ__dict__rr,Ú signatureÚ ValueErrorrÐr;ròrr*rr )r>rr(rBr"r#rFrErcreÚnoteÚskipdocsÚimclassrÿZreallinkÚargspecrkÚdeclr"rrrrÆŽsZ             zHTMLDoc.docroutinecCsxg}|j}|r&|d|ƒn|jdk ra|jt|ƒ|jƒ}|d|ƒn|dƒdj|ƒS)Nz!
%s
z
%s
z
r)r rUr*rr r!)r>r(rHrBrxrMr"rrrrQÊs  zHTMLDoc._docdescriptorcCs|j|||ƒS)z*Produce html documentation for a property.)rQ)r>rr(rBrErrrrÉ×szHTMLDoc.docpropertycGs'|rd|pd}||j|ƒS)z-Produce HTML documentation for a data object.z%s = r)rÎ)r>rr(rBrCZlhsrrrrÊÛszHTMLDoc.docothercCs|j|||ƒS)z1Produce html documentation for a data descriptor.)rQ)r>rr(rBrErrrrÂàszHTMLDoc.docdatacCs¾g}|dkri}nxktj|gƒD]W\}}}tdd„|Dƒƒr\q.n|j|d|||kfƒd||ész HTMLDoc.index..rrz#ffffffz#ee77aa)r>r?Úanyr r@rrr)r>rrrHrIr(rJrrrrÚindexäs " z HTMLDoc.index)r%r&r[rUræÚ_repr_instancerÎròrrrrr rrrrrrrr*r,rÄrÅrirÆrQrÉrÊrÂrvrrrrrþÊs:              +y– ; rþc@sLeZdZdZdd„Zdd„Zdd„ZeZdd „Zd S) ÚTextReprzAClass for safely making a text representation of a Python object.cCs:tj|ƒd|_|_d|_d|_|_dS)Nrçrèré)rr~rêrërìrírî)r>rrrr~÷s  zTextRepr.__init__cCs{tt|ƒdƒr_ddjt|ƒjjƒƒ}t||ƒr_t||ƒ||ƒSnttt|ƒƒ|j ƒS)Nr%rór_) rsrÏr!r%rr<r3r5rÎrî)r>rNrôrõrrrröýs "zTextRepr.repr1cCs^t||jƒ}t|ƒ}d|krZdt|ddƒkrZd|d||dS|S)Nr„z\\rr÷r)r3rírÎr/)r>rNrôrørùrrrrús  $zTextRepr.repr_stringc Cs=y ttt|ƒƒ|jƒSWnd|jjSYnXdS)Nz <%s instance>)r3r5rÎrírûr%)r>rNrôrrrrüs zTextRepr.repr_instanceN) r%r&r[rUr~rörúrýrürrrrrxõs    rxc@s÷eZdZdZeƒZejZdd„Zddd„Zdd„Z d d d d „Z d d d d„Z d d dd„Z dd„Z d d d dd„Zdd„Zd d d dd„Zd d d dd„Zd d d d d dd„Zd S)ÚTextDocz'Formatter class for text documentation.cCsdjdd„|DƒƒS)z(Format a string in bold by overstriking.rcss|]}|d|VqdS)úNr)r³rsrrrrtszTextDoc.bold..)r!)r>r.rrrÚboldsz TextDoc.boldz csV|s dS‡fdd†|jdƒDƒ}|rI|djƒ|d.rrr…r…)rrr!)r>r.r|r#r)r|rÚindent!s "zTextDoc.indentcCs.|j|ƒjƒ}|j|ƒd|dS)z&Format a section with a given heading.rz )r}rr{)r>rÿrZclean_contentsrrrr(szTextDoc.sectionNrc sæd}xÙ|D]Ñ}t|ƒtfƒkr£|\}}||t|ˆƒ}|r–||fkr–‡fdd†|Dƒ} |ddj| ƒ}n|d}q t|ƒtgƒkr ||j|ˆ||dƒ}q q W|S)zBRender in text a class tree as returned by inspect.getclasstree().rc3s|]}t|ˆƒVqdS)N)r))r³r0)r'rrrt7sz%TextDoc.formattree..z(%s)z, rz )rÏr)r!r,) r>r-r'r.r|rr/r0r1r2r)r'rr,/s    zTextDoc.formattreec Csâ|j}tt|ƒƒ\}}|jd||o:d|ƒ}t|ddƒ}|j|ƒ}|dk r‹||jd|dƒ}n|rª||jd|ƒ}ng} xutj|tjƒD]^\} } |dk sùtj | ƒpð||krÆt | ||ƒr$| j | | fƒq$qÆqÆWg} x~tj|tj ƒD]g\} } |dk s€tj | ƒs€tj | ƒ|krDt | ||ƒr«| j | | fƒq«qDqDWg} xHtj|tƒD]4\} } t | ||ƒrÈ| j | | fƒqÈqÈWg}tƒ}t|dƒr¤xWtj|jƒD]C\}}}|j|ƒ|rg|j |d ƒq1|j |ƒq1W|jƒ||jd d j|ƒƒ}ng}xUtj|tjƒD]>\} } | jj|d ƒrÀ| |krÀ|j | ƒqÀqÀW|r4|jƒ||jd d j|ƒƒ}n| rÃdd„| Dƒ}|jtj|dƒ|ƒg}x0| D](\} } |j |j| | |ƒƒquW||jdd j|ƒƒ}n| r$g}x0| D](\} } |j |j| | |ƒƒqÖW||jdd j|ƒƒ}n| r‹g}x6| D].\} } |j |j| | |ddƒƒq7W||jdd j|ƒƒ}nt|dƒrt|jƒ}|dd…d#krî|d$d…dkrî|dd%…jƒ}n||jd|ƒ}nt|dƒr8||jdt|j ƒƒ}nt|dƒri||jdt|j!ƒƒ}nt|dƒrš||jd t|j"ƒƒ}nytj#|ƒ}Wnt$k rÇd!}YnX||jd"|ƒ}|S)&z5Produce text documentation for a given module object.ÚNAMEz - r8NzMODULE REFERENCEa. The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above. Z DESCRIPTIONrZz (package)zPACKAGE CONTENTSrrZ SUBMODULEScSsg|]\}}|‘qSrr)r³rGrHrrrrµs z%TextDoc.docmodule..rÚCLASSESÚ FUNCTIONSr2éFZDATAr]r3r4z Revision: ÚVERSIONrTZDATErPZAUTHORrSZCREDITSz (built-in)ZFILEz $Revision: r…r…)%r%r$rrr<rårr@r+r=rur r,r8r-Úsetrsr>r?rZÚaddr@r!r*rqr,rArÌrÊr;r]rrTrPrSràrÐ)r>rr(rBZsynopÚdescrrträr#rGrHr"rGrHZ modpkgs_namesrIr'rJZ submodulesrKrrFr‡rrrrÄ?sž   " " $ "   ""   " "&","""  zTextDoc.docmodulecsEˆj}|p|}ˆj}ˆjdd„}||krRdˆj|ƒ}nˆj|ƒd|}|r˜t||ƒ} |ddj| ƒ}ntˆƒ} | r·| dgpºg} | j‰tt j ˆƒƒ} t | ƒdkr)ˆd ƒx"| D]} ˆd || ƒƒqþWˆd ƒnG‡fd d †d ƒ}|ƒ‰‡‡‡‡‡fdd†}‡‡‡‡fdd†}‡‡‡‡‡fdd†}‡fdd†t ˆƒDƒ}xB|r| rß| j ƒ‰n|dd‰t|‡fdd†ƒ\}}ˆtjkr)|}qÄn+ˆˆkr>d}ndtˆˆjƒ}|jƒ|d||dd„ƒ}|d||dd„ƒ}|d||d d„ƒ}|d!||d"d„ƒ}|d#||d$d„ƒ}|gksüt‚|}qÄWdj| ƒ} | s#|dS|dˆj| jƒd%ƒdS)&z4Produce text documentation for a given class object.cSs t||ƒS)N)r))r0r´rrrÚmakenameªsz"TextDoc.docclass..makenamezclass z = class z(%s)z, rrzMethod resolution order:z rcs.eZdZdd„Z‡fdd†ZdS)z(TextDoc.docclass..HorizontalRulecSs d|_dS)Nr)rL)r>rrrr~Ãsz1TextDoc.docclass..HorizontalRule.__init__cs'|jrˆddƒnd|_dS)Nr\r�r)rL)r>)rMrrrNÅs z.TextDoc.docclass..HorizontalRule.maybeN)r%r&r[r~rNr)rMrrrOÂs  rOcs°t||ƒ\}}|r¬ˆjƒˆ|ƒxz|D]o\}}}}ytˆ|ƒ}Wn+tk rˆˆˆj||ˆƒƒYq6Xˆˆj||ˆˆƒƒq6Wn|S)N)rOrNr<rPrQrÌ)rRrSrKrTr(ryrUrH)rVrBrrMr>rrrXËs    zTextDoc.docclass..spillcslt||ƒ\}}|rhˆjƒˆ|ƒx6|D]+\}}}}ˆˆj||ˆƒƒq6Wn|S)N)rOrNrQ)rRrSrKrTr(ryrUrH)rVrBrMr>rrrYÜs   z*TextDoc.docclass..spilldescriptorsc sát||ƒ\}}|r݈jƒˆ|ƒx«|D] \}}}}t|ƒsctj|ƒrrt|ƒ}nd}ytˆ|ƒ} Wntk r¬|j|} YnXˆˆj | |ˆddd|ƒdƒq6Wn|S)Nr2r�r"r) rOrNrZrrwrr<rºrjrÊ) rRrSrKrTr(ryrUrHr"r9)rVrBrrMr>rrr[ås   !z#TextDoc.docclass..spilldatacs@g|]6\}}}}t|dˆƒr||||f‘qS)r9)ru)r³r(ryrzrH)rrrrµ÷s z$TextDoc.docclass..rcs|dˆkS)Nrr)r5)r]rrr6sz"TextDoc.docclass..z defined herezinherited from %sz Methods %s: cSs|ddkS)Nrr^r)r5rrrr6szClass methods %s: cSs|ddkS)Nrz class methodr)r5rrrr6szStatic methods %s: cSs|ddkS)Nrz static methodr)r5rrrr6szData descriptors %s: cSs|ddkS)Nrzdata descriptorr)r5rrrr6szData and other attributes %s: cSs|ddkS)NrrGr)r5rrrr6sz | )r%rAr&r{Úmapr!rr rrr_r rvr`rOrarr)r@rbr}r)r>rr(rBrCrcr1r†rÿr2r"rrdrIrOrXrYr[rSrfrgr)rVrBrrMr>r]rrŤsn            !           zTextDoc.docclasscCsd|j|ƒS)z)Format an argument default value as text.rh)rÎ)r>rrrrri!szTextDoc.formatvaluec Cs|j}|p|}d}d}t|ƒr¥|jj}|rd||k r¢dt||ƒ}q¢q¥|jdk r�dt|jj|ƒ}q¥dt||ƒ}n||krÃ|j|ƒ} nH|rô||jkrô|j||krôd}n|j|ƒd|} d} tj|ƒržytj |ƒ} Wnt t fk rSd} YnX| ržt | ƒ} |d kr›|j|ƒd } | dd …} q›qžn| s­d } n| | |} |rÉ| d St |ƒpØd} | d | oþ|j| ƒjƒd SdS)z;Produce text documentation for a function or method object.rrz from Nz method of %s instancez unbound %s methodrz = zz lambda z(...)rr…)r%r?r;rûr)r{rjrr,rkrlrÐr;rr}r)r>rr(rBrErcrmrnrorÿrprkrqr"rrrrÆ%sJ           zTextDoc.docroutinecCszg}|j}|r5||j|ƒƒ|dƒnt|ƒpDd}|rm||j|ƒƒ|dƒndj|ƒS)Nrr)r r{rr}r!)r>r(rHrBrxrMr"rrrrQWs   zTextDoc._docdescriptorcCs|j|||ƒS)z*Produce text documentation for a property.)rQ)r>rr(rBrErrrrÉdszTextDoc.docpropertycCs|j|||ƒS)z1Produce text documentation for a data descriptor.)rQ)r>rr(rBrErrrrÂhszTextDoc.docdatac Cs¸|j|ƒ}|re|r%|dp(d|}|t|ƒ} | dkre|d| …d}qen|r~|j|ƒdp�d|}|dk r´|d|jt|ƒƒ7}n|S)z-Produce text documentation for a data object.z = rrNz...r)rÎr r{r}r;) r>rr(rBr.r2r"rÎrˆZchoprrrrÊls #  zTextDoc.docother)r%r&r[rUrxrwrÎr{r}rr,rÄrÅrirÆrQrÉrÂrÊrrrrrys     e} 2 ryc@s"eZdZdZdd„ZdS)Ú _PlainTextDocz2Subclass of TextDoc which overrides string stylingcCs|S)Nr)r>r.rrrr{zsz_PlainTextDoc.boldN)r%r&r[rUr{rrrrrˆxs rˆcCstƒat|ƒdS)zCThe first time this is called, determine what kind of pager to use.N)ÚgetpagerÚpager)r.rrrrŠs rŠc Cs„ttjdƒstSttjdƒs,tStjjƒ sLtjjƒ rPtSdtjkr§tjdkrxdd„Stjj dƒdkršd d„Sd d„Sntjj dƒdkrÃtStjdkrÜd d„Sttd ƒr tj d ƒdkr dd„Sddl }|j ƒ\}}tj |ƒz:ttd ƒrjtj d|ƒdkrjdd„StSWdtj|ƒXdS)z2Decide what method to use for paging through text.ÚisattyÚPAGERÚwin32cSstt|ƒtjdƒS)NrŒ)Ú tempfilepagerÚplainr rá)r.rrrr6�szgetpager..ZTERMÚdumbÚemacscSstt|ƒtjdƒS)NrŒ)Ú pipepagerr�r rá)r.rrrr6‘scSst|tjdƒS)NrŒ)r’r rá)r.rrrr6“scSstt|ƒdƒS)Nzmore <)rŽr�)r.rrrr6—sÚsystemz(less) 2>/dev/nullrcSs t|dƒS)NZless)r’)r.rrrr6™sNz more "%s"cSs t|dƒS)NZmore)r’)r.rrrr6 s)r�r‘)r�r‘)rsrÚstdinÚ plainpagerÚstdoutr‹r ráÚplatformr�r“ÚtempfileZmkstempÚcloseÚttypagerÚunlink)r˜ÚfdrŸrrrr‰…s4     $   ( r‰cCstjdd|ƒS)z%Remove boldface formatting from text.z.r)rr)r.rrrr�¦sr�cCs¹ddl}|j|ddd|jƒ}yKtj|jddƒ�-}y|j|ƒWntk rmYnXWdQXWntk r‰YnXx(y|j ƒPWq�tk r°Yq�Xq�WdS)z3Page through text by feeding it to another program.rNÚshellTr”ÚerrorsÚbackslashreplace) Ú subprocessÚPopenÚPIPEÚioÚ TextIOWrapperr”ÚwriteÚKeyboardInterruptr—Úwait)r.Úcmdr ÚprocÚpiperrrr’ªs      r’cCsuddl}|jƒ}t|dddƒ�}|j|ƒWdQXztj|d|dƒWdtj|ƒXdS)z.cSs!tjjƒdd…dd…S)Nrr…)rr”r†rrrrr6ÜsZLINESréz -- more --ÚqÚQz ú ÚbÚBú)r±r²)r³r)r´rµr¶)r�r¯rÚttyrr”ÚfilenoZ tcgetattrZ setcbreakr¹rºr£ÚUnsupportedOperationr!r rár�rlr–r¥r!ÚflushZ tcsetattrZ TCSAFLUSH) r.r#r·rœÚoldZgetcharÚhr÷Zincr0rrrršÑsL      '       /ršcCs tjjtt|ƒƒƒdS)z>Simply print unformatted text. This is the ultimate fallback.N)rr–r¥r�r¯)r.rrrr•ýsr•cCs'tj|ƒrT|jtjkr,d|jSt|dƒrFd|jSd|jSntj|ƒrnd|jStj|ƒr�d|jj |jj|jfStj |ƒrÌd|jj |jj|jfStj |ƒræd|jStj |ƒrd |jStj |ƒrd |jSt|ƒjS) z/Produce a short description of the given thing.zbuilt-in module rZzpackage zmodule zbuilt-in function zgetset descriptor %s.%s.%szmember descriptor %s.%s.%szclass z function zmethod )rr*r%rr¶rsr8rÁÚ __objclass__r&rÃr+r6r7rÏ)ÚthingrrrÚdescribes.        r¿c Csâdd„|jdƒDƒ}d\}}xW|t|ƒkr�tdj|d|d…ƒ|ƒ}|r}||d}}q+Pq+W|r‘|}nt}xD||d…D]2}yt||ƒ}Wq¨tk rÙdSYq¨Xq¨W|S)z@Locate an object by name or dotted path, importing as necessary.cSsg|]}|r|‘qSrr)r³r½rrrrµs zlocate..rNrr)Nr)rr r¾r!rar<rº)rr»rDr¤ÚnZ nextmodulerr½rrrÚlocates  &   rÁcCs|t|tƒrGt||ƒ}|dkr=td|ƒ‚n||fSt|ddƒ}|t|tƒrq|ndfSdS)zDGiven an object or a path to an object, get the object and its name.Nz$no Python documentation found for %rr%)rÇr;rÁr¹r<)r¾r»rr(rrrÚresolve5s  rÂz Python Library Documentation: %scCs0|dkrt}nt||ƒ\}}t|ƒ}tj|ƒ}|r{d|kr{|d|d|jdƒ…7}n&|r¡||k r¡|d|j7}ntj|ƒpøtj|ƒpøtj |ƒpøtj |ƒpøtj |ƒpøt |t ƒst|ƒ}|d7}n||d|j||ƒS)zBRender text documentation, given an object or a path to an object.Nrz in z in module z objectz )r.rÂr¿rr=Úrfindr%r*r+r,rÁrÃrÇrÈrÏrÌ)r¾rÿr»Zrendererrr(r…r¤rrrÚ render_doc@s$   $  rÄcCs�yE|dkr(tt|||ƒƒn|jt|||tƒƒWn5ttfk r|}zt|ƒWYdd}~XnXdS)zCDisplay text documentation, given an object or a path to an object.N)rŠrÄr¥Ú plaintextr¹r¦Úprint)r¾rÿr»ÚoutputrHrrrr"Ys   r"cCsºy~t||ƒ\}}tjt|ƒtj||ƒƒ}t|ddddƒ}|j|ƒ|jƒtd|dƒWn5t t fk rµ}zt|ƒWYdd}~XnXdS)zÚ walk_packagesrÉ)rÚpkgpathÚdonerIr'rJrrrÚ writedocsps  %rÍc@seZdZi!dd6dd6dd6dd6dd6d5d 6d6d 6d7d 6d8d6d9d6d:d6dd6d;d6dd6dd6d<d6dd6d=d6d>d6d?d6d@d!6d#d$6dAd%6dBd'6dd)6dd*6dCd+6dDd,6dEd.6dFd6dGd/6dHd6dId26ZidJd;6dKdP6dLd#6dMdQ6dNd^6dOd_6dPdb6ZidcdB6ddd?6dedf6dgdh6didj6dkdl6dmdn6d;do6dpdq6drds6dtdu6dvdw6dvdx6dydz6dyd{6ZxdejƒD]V\ZZxGeD]?Z ej e eƒZ ee krôe d|eZ ne ee >rïú|ú^ú~rðrñú<=ú>=ú==ú!=ú<>Ú OPERATORSZUNARYú+=ú-=ú*=ú/=ú%=ú&=ú|=ú^=ú<<=ú>>=ú**=ú//=ÚAUGMENTEDASSIGNMENTZBITWISEÚjÚJZCOMPLEXzOPERATORS FORMATTINGZPOWERzTUPLES LISTS FUNCTIONSú,z ATTRIBUTES FLOAT MODULES OBJECTSrÚELLIPSISz...zSLICINGS DICTIONARYLITERALSú:z def classú@r„Z PRIVATENAMESr_zPRIVATENAMES SPECIALMETHODSr^Z BACKQUOTESú`zTUPLES FUNCTIONS CALLSrr+zLISTS SUBSCRIPTS SLICINGSú[ú]rÍÚtypesúRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspectÚTYPESÚstringsú4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPESústring-methodsúSTRINGS FORMATTINGZ STRINGMETHODSÚ formatstringsZ FORMATTINGú:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPESÚUNICODEÚnumbersúINTEGER FLOAT COMPLEX TYPESZNUMBERSÚintegersú int rangeZINTEGERÚfloatingú float mathZFLOATÚ imaginaryú complex cmathÚtypesseqú$STRINGMETHODS FORMATTING range LISTSZ SEQUENCESZ DICTIONARIESZMAPPINGSÚtypesfunctionsú def TYPESÚ typesmethodsúclass def CLASSES TYPESZMETHODSúbltin-code-objectsúcompile FUNCTIONS TYPESZ CODEOBJECTSúbltin-type-objectsú types TYPESZ TYPEOBJECTSZ FRAMEOBJECTSZ TRACEBACKSúbltin-null-objectZNONEúbltin-ellipsis-objectÚSLICINGSÚ specialattrsZSPECIALATTRIBUTESú!class SPECIALMETHODS PRIVATENAMESrÚ typesmodulesZPACKAGESúoperator-summaryú˜lambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIESÚ EXPRESSIONSZ PRECEDENCEÚobjectsZOBJECTSÚ specialnamesúbBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSESZSPECIALMETHODSÚ customizationúhash repr str SPECIALMETHODSúattribute-accessúATTRIBUTES SPECIALMETHODSZATTRIBUTEMETHODSúcallable-typesúCALLS SPECIALMETHODSZCALLABLEMETHODSúsequence-typesú(SEQUENCES SEQUENCEMETHODS SPECIALMETHODSúMAPPINGS SPECIALMETHODSZMAPPINGMETHODSú numeric-typesú*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODSÚ NUMBERMETHODSÚ execmodelú%NAMESPACES DYNAMICFEATURES EXCEPTIONSZ EXECUTIONÚnamingú3global nonlocal ASSIGNMENT DELETION DYNAMICFEATURESZ NAMESPACESúdynamic-featuresZDYNAMICFEATURESZSCOPINGZFRAMESrÕútry except finally raiseÚ conversionsZ CONVERSIONSÚ identifiersúkeywords SPECIALIDENTIFIERSZ IDENTIFIERSú id-classesZSPECIALIDENTIFIERSúatom-identifiersú atom-literalsú=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALSZLITERALSZTUPLESÚ exprlistsúTUPLES LITERALSZ TUPLELITERALSútypesseq-mutableÚ LISTLITERALSZLISTSÚlistsúLISTS LITERALSÚ typesmappingÚDICTIONARYLITERALSrúDICTIONARIES LITERALSúattribute-referencesú(getattr hasattr setattr ATTRIBUTEMETHODSZ ATTRIBUTESÚ subscriptionsZ SUBSCRIPTSÚslicingsÚcallsZCALLSÚpowerÚunaryÚbinaryZBINARYÚshiftingZSHIFTINGÚbitwiseÚ comparisonsúEXPRESSIONS BASICMETHODSÚbooleansúEXPRESSIONS TRUTHVALUEZ ASSERTIONÚ assignmentZ ASSIGNMENTÚ augassignZDELETIONZ RETURNINGZ IMPORTINGZ CONDITIONALÚcompoundúfor while break continueZLOOPINGÚtruthú if while and or not BASICMETHODSÚdebuggerÚpdbZ DEBUGGINGúcontext-managersZCONTEXTMANAGERSNcCs||_||_dS)N)Ú_inputÚ_output)r>ÚinputrÇrrrr~#s zHelper.__init__cCs|jptjS)N)r‹rr”)r>rrrr6'szHelper.cCs|jptjS)N)rŒrr–)r>rrrr6(scCs)tjƒdddkr%|ƒdSdS)Nrr0ú?rz)rÚstack)r>rrrÚ__repr__*szHelper.__repr__cCsG||jk r|j|ƒn$|jƒ|jƒ|jjdƒdS)Na 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. )Ú_GoInteractiverÚintroÚinteractrÇr¥)r>ÚrequestrrrÚ__call__1s    zHelper.__call__cCs•|jjdƒx~y|jdƒ}|s/PnWnttfk rKPYnXt|ddddƒjƒ}|jƒdkr€Pn|j|ƒqWdS) Nrzhelp> rrrýr±Úquit)r±zquit) rÇr¥Úgetliner¦ÚEOFErrorr/rÚlowerr)r>r”rrrr“>szHelper.interactcCsJ|jtjkrt|ƒS|jj|ƒ|jjƒ|jjƒSdS)z.Read one line, using input() when appropriate.N)r�rr”rÇr¥rºr†)r>Úpromptrrrr—Js   zHelper.getlinecCsµt|ƒtdƒkrr|jƒ}|dkr=|jƒq¡|dkrV|jƒq¡|dkro|jƒq¡|dkrˆ|jƒq¡|dkr¡|jƒq¡|dd…dkrÑ|j|jƒd ƒq¡||jkrð|j |ƒq¡|dkrt t |ƒd ƒq¡||j kr1|j |ƒq¡||jkrP|j |ƒq¡|r¡t |d d|jƒq¡n/t|tƒr‹|ƒnt |d d|jƒ|jjdƒdS)NrrÚkeywordsÚsymbolsÚtopicsr�ézmodules rrÑrÏrÐz Help on %s:rÇr)zTruezFalsezNone)rÏrr’Ú listkeywordsÚ listsymbolsÚ listtopicsÚ listmodulesrrœÚ showsymbolr"Úevalr›Ú showtopicr�rŒrÇrÎrÇr¥)r>r”rrrrSs8        z Helper.helpcCs2|jjdttjdd…gdƒƒdS)Na‘ Welcome to Python %s's 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, symbols, or topics, type "modules", "keywords", "symbols", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose name or summary contain a given string such as "spam", type "modules spam". r0r)rÇr¥rŽrrF)r>rrrr’hs z Helper.introrƒéPc Csêtt|ƒƒ}||}t|ƒ|d|}x¯t|ƒD]¡}xˆt|ƒD]z}|||}|t|ƒkrT|jj||ƒ||dkrÎ|jjdd|dt||ƒƒqÎqTqTW|jjdƒqAWdS)NrrÍr)r Úsortedr r rÇr¥) r>ÚitemsÚcolumnsrZcolwrÚrowrrrrrr ys 4z Helper.listcCs*|jjdƒ|j|jjƒƒdS)NzN Here is a list of the Python keywords. Enter any keyword to get more help. )rÇr¥r r›rD)r>rrrrŸ†s zHelper.listkeywordscCs*|jjdƒ|j|jjƒƒdS)Nzx Here is a list of the punctuation symbols which Python assigns special meaning to. Enter any symbol to get more help. )rÇr¥r rœrD)r>rrrr �s zHelper.listsymbolscCs*|jjdƒ|j|jjƒƒdS)NzN Here is a list of available topics. Enter any topic name to get more help. )rÇr¥r r�rD)r>rrrr¡•s zHelper.listtopicsc Cs�yddl}Wn&tk r8|jjdƒdSYnX|jj||jj|ƒƒ}|s~|jjdt|ƒƒdSt|ƒtdƒkr¦|j ||ƒS|\}}y|jj|}Wn0t k rø|jjdt|ƒƒdSYnXt |j ƒdƒ|r*|pdd|}n|r‹ddl }ddj|jƒƒd} |j| d ƒ} |jjd dj| ƒƒndS) Nrzt Sorry, topic and keyword documentation is not available because the module "pydoc_data.topics" could not be found. zno documentation found for %s rrrÍzRelated help topics: z, éHz %s )Úpydoc_data.topicsr¹rÇr¥r�r�r›rÎrÏr¥ÚKeyErrorrŠrÚtextwrapr!rZwrap) r>ÚtopicÚ more_xrefsÚ pydoc_dataÚtargetÚlabelÚxrefsr"r®r.Z wrapped_textrrrr¥œs4   !    zHelper.showtopicc CsÁyddl}Wntk r(dSYnX|jj||jj|ƒƒ}|s_tdƒ‚nt|tƒr~|j||ƒS|\}}|jj|}|r·|p©dd|}n||fS)a*Return unbuffered tuple of (topic, xrefs). If an error occurs here, the exception is caught and displayed by the url handler. This function duplicates the showtopic method but returns its result directly so it can be formatted for display in an html page. rNút Sorry, topic and keyword documentation is not available because the module "pydoc_data.topics" could not be found. rzcould not find topicrÍ)rµr) r¬r¹r�r�r›rlrÇr;Ú _gettopic)r>r¯r°r±r²r³r´r"rrrr¶»s   ! zHelper._gettopiccCs9|j|}|jdƒ\}}}|j||ƒdS)NrÍ)rœÚ partitionr¥)r>Úsymbolr²r¯r_r´rrrr£Ös zHelper.showsymbolcs |r,|jjdj|ƒƒt|ƒnp|jjdƒi}|dd„‰‡fdd†}tƒjˆd|ƒ|j|jƒƒ|jjdƒdS) Nzy Here is a list of modules whose name or summary contains '{}'. If there are any, enter a module name to get more help. zI Please wait a moment while I gather a list of all available modules... cSsY|r3|dd…dkr3|dd…d}n|jdƒdkrUd||.callbackcsˆd|dƒdS)Nr)r')r»rrÚonerrorîsz#Helper.listmodules..onerrorr¼z‰ Enter any module name to get more help. Or, type "modules spam" to search for modules whose name or summary contain the string "spam". )rÇr¥r ÚaproposÚ ModuleScannerÚrunr rD)r>rGr�r¼r)r»rr¢Ûs    zHelper.listmodules)zassertr)zbreakr×)zclassrÙ)zcontinuer×)rÛr)zdelrÞ)zelser×)zforræ)zglobalrê)zifrë)úimportrì)zinrî)zlambdaú FUNCTIONS)znonlocalrò)zpassr)zraiser÷)zreturnrÁ)ztryr÷)zwhilerú)úwithrû)zyieldr)rýrþrÿrrrrr)rr\rrrßrrr r rïr r r rðrñrrrrr)rðrñrrrrr)r\r ) rrrrrrrrrrrr)r r rïr r r )r!r")útypesr+)r-r.)r/r0)r1r)r-r2)r4r5)r6r7)r8r9)r:r;)r<r=)r>r?)r@rA)rBrC)rDrE)rFr)rGrH)rIr)rÃrJ)rKrÀ)rLrM)rOr,)rPrQ)rRrS)rTrU)rVrW)rXrY)rXrZ)r[r\)r^r_)r`ra)rbr)z exceptionsrc)rdr)rerf)rgr)rhr)rirj)rkrl)rmrn)rorp)rqrr)zdictrs)rtru)rvrî)rwrî)rxrN)ryrN)rzrN)r{rN)r|rN)r}rN)r~r)r€r�)r‚r )rƒr])r„r…)ztruthr‡)rˆr‰)rŠrÂ) r%r&r[r›Z_symbols_inverserœr¨r¯Zsymbols_r¸r�r�r~rÈr�rÇr�rr‘r•r“r—rr’r rŸr r¡r¥r¶r£r¢rrrrrÎws<               rÎc@s+eZdZdZddddd„ZdS)r¾z7An interruptible scanner that searches module synopses.NcCsÀ|r|jƒ}nd|_i}x­tjD]¢}|dkr.d||<|dkri|d|dƒqÐt|ƒjp{d}|jdƒd}|d|}|jƒj|ƒdkrÐ|d||ƒqÐq.q.WxÕtj d|ƒD]Á\} }} |jrPn|dkr"|d|dƒqçytj | |ƒ} Wnt k rOwçYnX| j } t | d ƒrëy| j|ƒ} Wn(tk r¥|rž||ƒnwçYnXttj| ƒƒp¾d}t | d ƒrâ| j|ƒ}qld}n�tjj| ƒ}y|jƒ}Wn(tk r7|r0||ƒnwçYnX|jrT|jjƒdnd}t|d dƒ}|d|}|jƒj|ƒdkrç||||ƒqçqçW|r¼|ƒndS) NFÚ__main__rrrrz - r¼Ú get_sourceÚ get_filenamerV)r™r–rr¶r·rUrrºr>rÊÚ _get_specr¸rŠrsrÅrPr‰r£ÚStringIOrÆr�ršr›rœr¹ržr<)r>r»rGZ completerr¼Úseenr'r(r…rIrJr¢rŠÚsourcerr£r¤rrrr¿üsb    "         "zModuleScanner.run)r%r&r[rUr¿rrrrr¾ùs r¾c CsUdd„}dd„}tjƒ�+tjdƒtƒj||d|ƒWdQXdS)zAPrint all the one-line module summaries that contain a substring.cSsH|dd…dkr-|dd…d}nt||o@d|ƒdS)Nr¹z .__init__z (package)z- i÷ÿÿÿi÷ÿÿÿ)rÆ)rr'r…rrrr»9szapropos..callbackcSsdS)Nr)r'rrrr¼=szapropos..onerrorÚignorer¼N)ÚwarningsÚcatch_warningsÚfilterwarningsr¾r¿)rGr»r¼rrrr½7s     r½csÞddl‰ddl‰ddl‰ddl‰Gdd„dˆjjƒ‰G‡fdd†dˆjjƒ‰G‡‡‡‡‡fdd†dˆjƒ}|||ƒ}|jƒx%|j rÙ|j rÙt j d ƒqµW|S) a7Start an HTTP server thread on a specific port. Start an HTML/text server thread, so HTML or text documents can be browsed dynamically and interactively with a Web browser. Example use: >>> import time >>> import pydoc Define a URL handler. To determine what the client is asking for, check the URL and content_type. Then get or generate some text or HTML code and return it. >>> def my_url_handler(url, content_type): ... text = 'the URL sent was: (%s, %s)' % (url, content_type) ... return text Start server thread on port 0. If you use port 0, the server will pick a random port number. You can then use serverthread.port to get the port number. >>> port = 0 >>> serverthread = pydoc._start_server(my_url_handler, port) Check that the server is really started. If it is, open browser and get first page. Use serverthread.url as the starting page. >>> if serverthread.serving: ... import webbrowser The next two lines are commented out so a browser doesn't open if doctest is run on this module. #... webbrowser.open(serverthread.url) #True Let the server do its thing. We just need to monitor its status. Use time.sleep so the loop doesn't hog the CPU. >>> starttime = time.time() >>> timeout = 1 #seconds This is a short timeout for testing purposes. >>> while serverthread.serving: ... time.sleep(.01) ... if serverthread.serving and time.time() - starttime > timeout: ... serverthread.stop() ... break Print any errors that may have occurred. >>> print(serverthread.error) None rNc@s(eZdZdd„Zdd„ZdS)z!_start_server..DocHandlercSsx|jjdƒrd}nd}|jdƒ|jdd|ƒ|jƒ|jj|j|j|ƒjdƒƒdS) z¢Process a request from an HTML browser. The URL received is in self.path. Get an HTML page from self.urlhandler and send it. z.cssztext/cssz text/htmléÈz Content-Typez%s; charset=UTF-8zutf-8N) rrrZ send_responseZ send_headerZ end_headersZwfiler¥Ú urlhandlerr­)r>Ú content_typerrrÚdo_GET„s   z(_start_server..DocHandler.do_GETcWsdS)Nr)r>rËrrrÚ log_message”sz-_start_server..DocHandler.log_messageN)r%r&r[rÒrÓrrrrÚ DocHandler‚s  rÔcs:eZdZdd„Z‡fdd†Zdd„ZdS)z _start_server..DocServercSsMd|_|j|f|_||_|jj||j|jƒd|_dS)NZ localhostF)ÚhostZaddressr»rIr~Úhandlerr–)r>Úportr»rrrr~šs   z)_start_server..DocServer.__init__cs^xM|jsOˆj|jjƒgggdƒ\}}}|r|jƒqqW|jƒdS)Nr)r–ÚselectZsocketr¸Zhandle_requestZ server_close)r>ZrdÚwrZex)rØrrÚserve_until_quit¡s  -z1_start_server..DocServer.serve_until_quitcSs-|jj|ƒ|jr)|j|ƒndS)N)rIÚserver_activater»)r>rrrrÛ¨s z0_start_server..DocServer.server_activateN)r%r&r[r~rÚrÛr)rØrrÚ DocServer˜s  rÜcsUeZdZ‡fdd†Z‡‡‡‡fdd†Zdd„Zdd„Zd S) z#_start_server..ServerThreadcs>||_t|ƒ|_ˆjj|ƒd|_d|_dS)NF)rÐr!r×ÚThreadr~ÚservingÚerror)r>rÐr×)Ú threadingrrr~¯s   z,_start_server..ServerThread.__init__csšyeˆjjˆ_ˆˆ_ˆjjˆ_t|jƒˆ_ˆ|j |j ƒ}||_ |j ƒWn.t k r•}z||_WYdd}~XnXdS)zStart the server.N)ÚserverÚ HTTPServerrIrÖrÑZMessageZ MessageClassÚ staticmethodrÐr×ÚreadyÚ docserverrÚrPrß)r>ZdocsvrÚe)rÔrÜÚemailÚhttprrr¿¶s  z'_start_server..ServerThread.runcSs>d|_|j|_|j|_d|j|jf|_dS)NTz http://%s:%d/)rÞrÕZ server_portr×r)r>rárrrräÃs   z)_start_server..ServerThread.readycSs"d|j_d|_d|_dS)z&Stop the server and this thread nicelyTFN)rår–rÞr)r>rrrÚstopÉs  z(_start_server..ServerThread.stopN)r%r&r[r~r¿rärér)rÔrÜrçrèràrrÚ ServerThread­s  rêg{®Gáz„?) Z http.serverZ email.messagerØràráZBaseHTTPRequestHandlerrârÝr'rßrÞÚtimeZsleep)rÐr×rêZthreadr)rÔrÜrçrèrØràrÚ _start_serverEs8    "+" rìz text/htmlc s­G‡fdd†dtƒ}|ƒ‰‡fdd†‰‡fdd†‰‡fdd†‰‡fd d †‰‡fd d †‰ ‡fd d†‰‡fdd†‰‡fdd†‰‡fdd†‰‡‡‡‡‡‡‡‡‡ f dd†}|jdƒr|dd…}n|dkr}tjjtjjtƒƒ}tjj||ƒ}t|ƒ�}dj|j ƒƒSWdQXn|dkr“||ƒSt d||fƒ‚dS)aThe pydoc url handler for use with the pydoc server. If the content_type is 'text/css', the _pydoc.css style sheet is read and returned if it exits. If the content_type is 'text/html', then the result of get_html_page(url) is returned. cs.eZdZ‡fdd†Zdd„ZdS)z_url_handler.._HTMLDoccs'd}d|}d||ˆƒ|fS)zFormat an HTML page.zpydoc_data/_pydoc.cssz1a  Pydoc: %s %s%s
%s
r)r>rÿrÚcss_pathZcss_link)Ú html_navbarrrrãsz#_url_handler.._HTMLDoc.pagecSsd||fS)Nz%sr)r>rrrrrrðsz'_url_handler.._HTMLDoc.filelinkN)r%r&r[rrr)rîrrÚ_HTMLDocás  rïcsUˆjdtjƒtjƒdtjƒfƒ}d|ˆjtjddƒƒfS)Nz %s [%s, %s]raZ
Python %s
%s
ZterseT)ròr—Zpython_versionZ python_buildZpython_compiler)rF)rÈrrrîös z!_url_handler..html_navbarcs¾dd„}ˆjdddƒ}dd„tjDƒ}ˆj||ƒ}|dˆjd dd |ƒg}i}x*tjD]}|jˆj||ƒƒq{W|jd ƒd d j|ƒfS)zModule Index page.cSsd||fS)Nz%sr)r(rrrÚ bltinlink sz3_url_handler..html_index..bltinlinkz7Index of Modulesz#ffffffz#7799eecSs"g|]}|dkr|‘qS)rÄr)r³r(rrrrµ s z4_url_handler..html_index..z

zBuilt-in Modulesz#ee77aaz|

pydoc by Ka-Ping Yee<ping@lfw.org>zIndex of Modulesr) rrr¶rrrr rvr!)rðrÚnamesrrÉr)rÈrrÚ html_index s   z _url_handler..html_indexc såg‰‡fdd†}tjƒ�7tjdƒdd„}tƒj||d|ƒWdQXdd „}g}ˆjd d d ƒ}x+ˆD]#\}}|j||ƒ|ƒq‹W|ˆjd |d ddj|ƒƒ}d|fS)zSearch results page.csN|dd…dkr-|dd…d}nˆj||oCd|fƒdS)Nr¹z .__init__z (package)z- i÷ÿÿÿi÷ÿÿÿ)r )rr'r…)Ú search_resultrrr»/ sz3_url_handler..html_search..callbackrËcSsdS)Nr)r'rrrr¼6 sz2_url_handler..html_search..onerrorr¼NcSsd||fS)Nz%sr)r(rrrrð; sz4_url_handler..html_search..bltinlinkz5Search Resultsz#ffffffz#7799eezkey = %sz#ee77aaz
zSearch Results) rÌrÍrÎr¾r¿rr rr!) rGr»r¼rðrxrr(r…r)rÈ)rórÚ html_search* s        z!_url_handler..html_searchc sŒtjj|ƒ}tj|ƒ�}ˆj|jƒƒ}WdQXd|}ˆjdddƒ}|ˆjd|dd|ƒ}d||fS) z-Get and display a source file listing safely.Nz

%s
z3File Listingz#ffffffz#7799eezFile: %sz#ee77aaz getfile %s) r9r:Zunquoter•r–ròr­rr)rÚfpr#Zbodyrr)rÈrrÚ html_getfileH s   z"_url_handler..html_getfilecsndd„}ˆjdddƒ}ttjjƒƒ}ˆj||ƒ}|ˆjddd|ƒ}d|fS)zIndex of topic texts available.cSsd||fS)Nz%sr)r(rrrrðX sz4_url_handler..html_topics..bltinlinkz,INDEXz#ffffffz#7799eeZTopicsz#ee77aa)rr§rÎr�rDrr)rðrrñr)rÈrrÚ html_topicsU s   z!_url_handler..html_topicscsnˆjdddƒ}ttjjƒƒ}dd„}ˆj||ƒ}|ˆjddd|ƒ}d|fS)zIndex of keywords.z,INDEXz#ffffffz#7799eecSsd||fS)Nz%sr)r(rrrrðl sz6_url_handler..html_keywords..bltinlinkZKeywordsz#ee77aa)rr§rÎr›rDrr)rrñrðr)rÈrrÚ html_keywordse s   z#_url_handler..html_keywordscs tjƒ}t||ƒ}|j|ƒ\}}||jkrHd}nd}ˆjd|ddƒ}dˆj|ƒ}ˆj|dd|ƒ}|rãt|j ƒƒ}dd „}ˆj ||ƒ}ˆj d dd|ƒ}nd ||fd j |||fƒfS) zTopic or keyword help page.ZKEYWORDZTOPICz)%sz#ffffffz#7799eez
%s
z#ee77aacSsd||fS)Nz%sr)r(rrrrð… sz7_url_handler..html_topicpage..bltinlinkzRelated help topics: z%s %sr) r£rÈrÎr¶r›rr*rr§rrrr!)r¯ZbufZhtmlhelprr´rÿrrð)rÈrrÚhtml_topicpaget s&      z$_url_handler..html_topicpagecsat|ddƒ}|dkr9|dkr9tdƒ‚nt|ƒ}ˆj||ƒ}||fS)Nr»rrÐzcould not find object)rÁrlr¿rÌ)rr9rÿÚcontent)rÈrrÚ html_getobjŽ s  z!_url_handler..html_getobjcspˆjdddƒ}dj‡fdd†tt|ƒ|ƒDƒƒ}|ˆj|dd|ƒ}d||fS) Nz,Errorz#ffffffz#7799eez
c3s|]}ˆj|ƒVqdS)N)rò)r³rˆ)rÈrrrtš sz3_url_handler..html_error..z#bb0000z Error - %s)rr!rrÏr)rr§rr)rÈrrÚ html_error– s  z _url_handler..html_errorcs|}|jdƒr(|dd…}ny›|dkrIˆƒ\}}ny|dkrgˆƒ\}}n[|dkr…ˆƒ\}}n=d|kr°|jdƒ\}}}|d krʈ|ƒ\}}qÂ|d krëˆ|ƒ\}}qÂ|d kr7yˆ|ƒ\}}Wq­tk r3ˆ|ƒ\}}Yq­XqÂ|d kr¡|dkraˆƒ\}}q­yˆ|ƒ\}}Wq­tk r�ˆ|ƒ\}}Yq­XqÂtd ƒ‚nˆ|ƒ\}}Wn:tk rÿ}zˆ||ƒ\}}WYdd}~XnXˆj||ƒS)zGenerate an HTML page for url.z.htmlNérrvr�r›rhz search?keyz getfile?keyz topic?keyzget?keyz bad pydoc urléûÿÿÿ)rúindex)rrÿ)rrr·rlrPr)rZ complete_urlrÿrúÚopr_r§) rÈrürörûròrørôrùr÷rrÚ get_html_page  sB           (z#_url_handler..get_html_pagerßrNztext/cssrz text/htmlz"unknown content type %r for url %s) rþrqr rÚdirnameÚrealpathrVr!r–Ú readlinesrÐ)rrÑrïrZ path_hererírõr) rÈrürörûròrørîrôrùr÷rÚ _url_handlerØs,    **   rÚ open_browserTcCs-ddl}tt|ƒ}|jr5t|jƒdS|jr)d}|r]|j|jƒnz¥ytd|jƒt|ƒx^|jrÝtdƒ}|j ƒ}|dkr±Pq€|dkrÐ|j|jƒq€t|ƒq€WWnt t fk rtƒYnXWd|jr%|j ƒtdƒnXndS) z¹Start the enhanced pydoc Web server and open a Web browser. Use port '0' to start the server on an arbitrary port. Set open_browser to False to suppress opening a browser. rNz"Server commands: [b]rowser, [q]uitzServer ready atzserver> r±r´zServer stopped) Ú webbrowserrìrrßrÆrÞr–rr�r™r¦r˜ré)r×rrZ serverthreadZserver_help_msgr¨rrrÚbrowse× s2            rcCs%t|tƒo$|jtjƒdkS)Nr)rÇr;rºr Úsep)rNrrrÚispathü sr cCs×ddl}Gdd„dtƒ}dtjkr‚tjjtjdƒ}|tjkrltjj|ƒntjjddƒnyë|jtjdd…dƒ\}}d }d }d }d}xy|D]q\} } | d krðd }d }n| d kr t | ƒdS| d kr%d }| }n| dkrÉd }qÉqÉW|rm|dkrYd}nt |d|ƒdS|s||‚nxí|D]å} t | ƒrºtjj | ƒ rºt d| ƒPny|t | ƒrêtjj| ƒrêt| ƒ} n|r(t | ƒrtjj| ƒrt| ƒq5t| ƒn tj| ƒWqƒtk rg} zt | ƒWYdd} ~ XqƒXqƒWWnc|j|fk rÒtjjtjjtjdƒƒd} t djd| dtjƒƒYnXdS)z@Command-line interface (looks at sys.argv to decide what to do).rNc@seZdZdS)zcli..BadUsageN)r%r&r[rrrrÚBadUsage s r rrrzbk:p:wFz-bTz-kz-pz-wrzfile %r does not exista�pydoc - the Python documentation tool {cmd} ... 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 '{sep}', 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. {cmd} -k Search for a keyword in the synopsis lines of all available modules. {cmd} -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. {cmd} -b Start an HTTP server on an arbitrary unused port and open a Web browser to interactively browse documentation. The -p option can be used with the -b option to explicitly specify the server port. {cmd} -w ... Write out the HTML documentation for a module to a file in the current directory. If contains a '{sep}', it is treated as a filename; if it names a directory, documentation is written for all the contents. r¨r )ÚgetoptrPrrr rÚargvÚremoveÚinsertr½rr ÚexistsrÆrr²r rÍrÉrr¦rßr¯r®r r )r r Z scriptdirZoptsrËZwritingZ start_serverrr×ZoptÚvalÚargrHr¨rrrÚcliÿ sd %              %)rrÄ)VrUr8rPrTrSraZimportlib._bootstrapr�Úimportlib.machineryÚimportlib.utilrr£r r>r—rrrër•Z urllib.parser9rÌÚ collectionsrÚreprlibrÚ tracebackrrrr$r)r-r/r3rÚ IGNORECASEr4r5r:r?rCrOrurvr�r‰r¥rPr¦r²r¾r¿rærþrxryrˆrŠr‰r�r’rŽr¯ršr•r¿rÁr.rÅrÈrÂrÄr"rÉrÍrÎrr¾r½rìrrr rr%rrrrÚ$s¨                          ( 0=*ÿÿ- ÿd  !    ,        ÿ� >  “ÿ%  V