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||ú__name__ú __author__ú __builtins__ú __module__ú __loader__ú __version__ú __credits__ú__date__ú__path__ú __qualname__ú__doc__ú__spec__ú __slots__ú __package__ú__file__ú __cached__)Ú 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@r!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#rFrErbrdÚnoteÚskipdocsÚimclassrÿZreallinkÚargspecrjÚ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ÅrhrÆrQrÉrÊrÂrurrrrrþÊ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ürrrrrwõs    rwc@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³rrrrrrsszTextDoc.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|rrz)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'rrrs7sz%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.docmodulecs3ˆ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ƒ}x0|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„ƒ}|}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ºrirÊ) 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&rzÚmapr!rr rrr_r rvr`rOrarr)r@r|r)r>rr(rBrCrbr1r…rÿr2r"rrcrIrOrXrYr[rSrerfr)rVrBrrMr>r]rrŤsl            !           zTextDoc.docclasscCsd|j|ƒS)z)Format an argument default value as text.rg)rÎ)r>rrrrrh!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)rzrirr,rjrkrÐr;rr|r)r>rr(rBrErbrlrmrnrÿrorjrpr"rrrrÆ%sJ           zTextDoc.docroutinecCszg}|j}|r5||j|ƒƒ|dƒnt|ƒpDd}|rm||j|ƒƒ|dƒndj|ƒS)Nrr)r rzrr|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 rzr|r;) r>rr(rBr.r2r"rÎrˆZchoprrrrÊls #  zTextDoc.docother)r%r&r[rUrwrvrÎrzr|rr,rÄrÅrhrÆrQrÉrÂrÊrrrrrxs     e} 2 rxc@s"eZdZdZdd„ZdS)Ú _PlainTextDocz2Subclass of TextDoc which overrides string stylingcCs|S)Nr)r>r.rrrrzzsz_PlainTextDoc.boldN)r%r&r[rUrzrrrrr‡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�rkr•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šrkrÇ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þrÿrrrr)rr\rrrßrrrr rïr r r rðrñr rrrr)rðrñr rrrr)r\r ) rrrrrrrrrrrr)rr rïr r r )r r!)útypesr*)r,r-)r.r/)r0r)r,r1)r3r4)r5r6)r7r8)r9r:)r;r<)r=r>)r?r@)rArB)rCrD)rEr)rFrG)rHr)rÂrI)rJr¿)rKrL)rNr+)rOrP)rQrR)rSrT)rUrV)rWrX)rWrY)rZr[)r]r^)r_r`)rar)z exceptionsrb)rcr)rdre)rfr)rgr)rhri)rjrk)rlrm)rnro)rprq)zdictrr)rsrt)rurí)rvrí)rwrM)rxrM)ryrM)rzrM)r{rM)r|rM)r}r~)rr€)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 rur!)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Àrkr¾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Çrrrsš 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érrurœršrgz search?keyz getfile?keyz topic?keyzget?keyz bad pydoc urléûÿÿÿ)rúindex)rrþ)rrr¶rkrPr)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þrwrxr‡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