\d#dZdgZdZdZdZddlZddlZddlZddl Zddl Zddl Zddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZddlmZdd lmZd Zd Z d Z!d Z"dZ#dZ$dZ%dZ&dZ'dZ(dZ)ej*dej+Z,dZ-dZ.dZ/dZ0e1ej2Z3dRdZ4dZ5dZ6dZ7dZ8ifdZ9Gd d!e:Z;d"ZGd&d'eZ?Gd(d)e>Z@Gd*d+eZAGd,d-e>ZBGd.d/eBZCd0aDd1ZEd2ZFd3ZGd4ZHd5ZId6ZJd7ZKd8ZLdSd9ZMeBZNeCZOe@ZPdSd:ZQ dTd<ZR dTd=ZSdSd>ZTdUd@ZUGdAdBZVeVZWGdCdDZXdEZYdFZZdVdHZ[dSdIdJdKdLZ\dMZ]dNZ^dOZ_dPZ`eadQkr e`dSdS)WaGenerate 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 -n " to start an HTTP server with the given hostname (default: localhost) on the local machine. 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. Combine with the -n and -p options to control the hostname and port used. Run "pydoc -w " to write out the HTML documentation for a module to a file named ".html". Module docs for core modules are assumed to be in https://docs.python.org/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 2001zGuido 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_onlycFg}g}tjD]}tj|pd}tj|}||vrItj|r*|||||S)zAConvert sys.path into a list of absolute, existing, unique paths..)syspathosabspathnormcaseisdirappend)dirsnormdirsdirnormdirs ..\python\lib\pydoc.pypathdirsrRs DHx%%goocjS))'""3'' ( " "rw}}S'9'9 " KK    OOG $ $ $ Kctj|j}|dS|jdddD]}t ||}tj|sdS|S)Nr) r modulesget __module__ __qualname__splitgetattrinspectisclass)funcclsnames r _findclassr$^sw +//$/ * *C {t!'',,SbS1!!c4   ?3  t JrcJtj|rZ|jj}|j}tj|r*t t ||dd|jur|}n~|j}nutj|r.|j}t|}|t |||urdSn3tj |rC|j}|j}tj|r|j dz|z|j kr|}n|j}nt|tr4|j}|j}t|}|t |||urdSntj|stj|ri|j}|j}t |||urdStj|r2t |dd}t|t&r ||vr||SndS|jD]7} t+t ||}n#t,$rY-wxYw||cS8dS)N__func__r __slots__)rismethodr&__name____self__r r __class__ isfunctionr$ isbuiltinr isinstancepropertyfgetismethoddescriptorisdatadescriptor __objclass__ismemberdescriptordict__mro__ _getowndocAttributeError)objr#selfr"r!slotsbasedocs r_finddocr>hsd(|$| OD ! ! ! GD$--z : :cl J JCC.CC  C |oo ;'#t,,C7748  3  || OD ! ! !   #d *c.> > >CC.CC C " "x} ;'#t,,C7748  #C ( ( G,DS,I,I | 3  S ( (4  %c * * #Cd33E%&& #45==T{"t  WT40011CC    H  ?JJJ  4s.H  HHc t|d}|dS|tur1t|j}t |t r||krdS|S#t $rYdSwxYw)zUGet the documentation string for an object if it is not inherited from its class.__doc__N)object__getattribute__typer@r.strr8)r9r=typedocs rr7r7s %%c955 ;4 d??3ii'G'3'' GsNNt ttsA8AA A+*A+ct|}|) t|}n#ttf$rYdSwxYwt |t sdSt j|S)zGet the documentation string for an object. All tabs are expanded to spaces. To clean up docstrings that are indented to line up with blocks of code, any whitespace than can be uniformly removed from the second line onwards is removed.N)r7r>r8 TypeErrorr.rDrcleandoc)rAr=s r_getdocrIsy V  C { 6""CC *   44  c3  t  C  s #88ct|ptj|}|r(tjdd|pdS)z-Get the doc string or comments for an object.z^ * )rIr getcommentsresubrstrip)rAresults rgetdocrQsC V__ ; 3F ; ;F  :bfWb&--//:: @b@rc\|d}t|dkr |ddfSt|dkr?|ds%|dd|ddfSdd|fS)z>Split a doc string into a synopsis line (if any) and the rest. rrKN)striprlenrOjoin)r=liness rsplitdocrZs IIKK  d # #E 5zzQQx| Uqq!2!2Qx59---- tyy rcD|j}|j|kr |jdz|z}|S)z@Get a class name and qualify it with a module name if necessary.r)r)r)rAmodnamer#s r classnamer]s. ?D G## 3&- Krctj|pctj|pOtj|p;tj|p'tj|ptj| S)z>Check if an object is of a type that probably means it's data.)rismoduler isroutineisframe istracebackiscode)rAs risdatards| ((FGOF,C,CF!&))F-4_V-D-DF#F++F/6~f/E/E GGrc|r@|d||d}|dd}|@|S)z/Do a series of global replacements on a string.rTrrUN)rXr)textpairss rreplacerhsM Qx}}TZZa1122abb   Krct||krTtd|dz dz}td|dz |z }|d|dz|t||z dzS|S)zCOmit part of a string if needed to make it fit in a maximum length.rrUN...)rWmax)rfmaxlenpreposts rcramrpsq 4yy6!fQh]##1fQhsl##DSDzE!DT4$999 Krz at 0x[0-9a-f]{6,16}(>+)$c8td|S)z>Remove the hexadecimal id from a Python object representation.z\1) _re_stripidrNrfs rstripidrts ??5$ ' ''rctj|rdStj|r*t|dd}tj|p|du SdS)zo Returns True if fn is a bound method, regardless of whether fn was implemented in Python or in C. Tr*NF)rr(r-rr_)fnr:s r_is_bound_methodrwsb t>r:t,,$T**?? U  ))z$''((((||~~((r3'' Nrcg}g}|D]8}||r||#||9||fS)zSplit sequence s via predicate, and return pair ([true], [false]). The return value is a 2-tuple of lists, ([x for x in s if predicate(x)], [x for x in s if not predicate(x)]) r)s predicateyesnoxs r _split_listrsX C B  9Q<<  JJqMMMM IIaLLLL 7Nrcf|dvrdS|dr|drdS|drt|drdS|tur4|tvr+t t ||dtjrd S|||vS|d S) z3Decide whether to show documentation on a variable.>r@__date____file__r)__path____spec__r' __author__ __cached__ __loader__r __credits__ __package__ __version__ __builtins__rr__rT__fieldsTNF) startswithendswithhasattr __future___future_feature_namesr.r_Feature)r#allr9s r visiblenamers HHHq t>t!4!4>QQ sY 7 7t *)>!>!> gc4.. 0C D D 5 s{??3''''rcg}tj|D]T\}}}}tj|r d}t|tr |jd}|||||fU|S)zCWrap inspect.classify_class_attrs, with fixup for data descriptors.data descriptorNreadonly property)rclassify_class_attrsr2r.r/fsetr)rAresultsr#kindr"rs rrr,sG$+$@$H$H11 tS%  #E * * +$D%** +uz/A*dC/0000 Nrct|dg fdtDn#t$riYnwxYwfd}||dS)zGSort the attrs list in-place by _fields and then alphabetically by namerc<i|]\}}||tz S)rW).0ir#fieldss r z#sort_attributes..=s)OOO DtaF mOOOrcL|dd|dfSNr)r)attr field_orders rz!sort_attributes..@s"KOODGQ77aArrN)r enumeraterGsort)attrsrAkeyfuncrrs @@rsort_attributesr7sVY + +FOOOOYv=N=NOOO  AAAAG JJ7Js1 AActj|rHdD]E}tjtj|d|zrdSFdS)z3Guess whether a path refers to a package directory.)z.pyz.pyc__init__TF)r r risfilerX)r exts r ispackagerEsc w}}T"  Cw~~bgll4c1ABBCC tt  5rcz|}|dddks|s9|}|sn"|dddk%|9|}|dddkr |dd}|dddkr|dd}|dddkr |dd}|s+|}|sn|+|dd }nd}|S) NrT#zr"""rj"""r\r)readlinerVr)filelinerPs rsource_synopsisrMs4 ==??D rr(c///}}U rr(c/// ::<99*hAG:IID "-33D99 tt J'7=~OV^..00334F &/h Ms0C C*)C*/D  DDE&&E+ceZdZdZdZdZdS)ErrorDuringImportzEErrors that occurred while trying to import something to document it.c>||_|\|_|_|_dSN)rexcrtb)r:rexc_infos rrzErrorDuringImport.__init__s  (0%$*dgggrcD|jj}d|jd|d|jS)Nz problem in  - z: )rr)rr)r:rs r__str__zErrorDuringImport.__str__s)h+/===###tzzJJrN)r)rrr@rrrrrrrs=OO111KKKKKrrctjj}t|d5}||t |k}dddn #1swxYwYt j|}t j |\}}|r!tj ||}n tj ||}tj |||} tj|S#t!|t#jxYw)z 1 1$V 1 L LD6#))$///6clnn555s'AAAD&&#E c |r_tjvrQtjvrCfdtjD}g|zD]$}tj|||<tj|=%t}n#tjx\}}}} tjvr%t tjj| |turt |j| t|tr|j krYdSt tjxYw dddD]$} t|| }#t$rYdSwxYw|S)aImport a module; handle errors; return None if the module isn't found. If the module *is* found but an exception occurs, it's wrapped in an ErrorDuringImport exception and reraised. Unlike __import__, if a package path is specified, the module at the end of the path is returned, not the package at the beginning. If the optional 'forceload' argument is 1, we reload the module from disk (unless it's a dynamic extension).cDg|]}|dz|S)r)r)rmr s r zsafeimport..s.KKKa!,,tcz2J2JKKKKrNrrT)r rbuiltin_module_names __import__rrr SyntaxErrorr issubclass ImportErrorr#rrr8) r forceloadrsubsrrrrrinfoparts ` r safeimportr s :  ),,3333 LKKK3;KKK 6D=))C!$S!1E#J C((D!!:"%,..0eR4 3;  #CK$5$>EE E K  #END99 9 [ ) ) :ejD.@.@44$D#,..99 9 3#++fd++VV***dddd* Ms%A0A44B D$!D$E E&%E&ceZdZejddejddzZd dZ d dZ e xZ xZ xZ xZxZZejdfdZdS) Doc PYTHONDOCSz%https://docs.python.org/%d.%d/libraryNrUc8||f|z} tj|r |j|Stj|r |j|Stj|r |j|Sn#t$rYnwxYwtj|r |j |S|j |S)z%Generate documentation for an object.) rr_ docmoduler docclassr` docroutiner8r2docdatadocother)r:rAr#argss rdocumentz Doc.documents~$  '' E0E)Ev&& C}t}d/C(C (( G$1G*G G    D   #F + +GLDL$4G-Gt}d##sA$A$A$$ A10A1cxd|odt|zdt|j}t|)z+Raise an exception for unimplemented types.z!don't know how to document object z of type )reprrCr)rG)r:rAr#rmessages rfailzDoc.failsB  %S4::% % %tF||'<'<>   rstdlibc tj|}n#t$rd}YnwxYwtjd|j}tj|}t|ttr|j dvsH| |r| tj |ds|j dvr| drAd|d|j }n=tj ||j d z}nd }|S) z*Return the location of module docs or None (built-in)r ) errno exceptionsgcimpmarshalposixsignalr _thread zipimportz site-packages)z xml.etreeztest.pydoc_mod)zhttp://zhttps://z {}/{}.html/.htmlN)r getabsfilerGr environrr r r r.rCr)rrXformatrOlower)r:rAbasedirrdoclocs r getdoclocz Doc.getdoclocs` %f--DD   DDD  do>>'""7++ vtBxx ( (  _!999oog&&9//"',,w"H"HII 9 O#B B B  !899 Q%,,V]]3-?-?AVAVAXAXYYffo.C.C.E.E.OPPF s  &&r)r)rrr r)rr version_infor rrrrrr docpropertyr sysconfigget_pathr.rrrr r s G"%"22A2"6!788J$$$$ !!!! LPOIOO:OO;(: (:8(D(Drr c>eZdZdZdZdZdZdZdZeZ dZ eZ dS) HTMLReprzBClass for safely making an HTML representation of a Python object.cttj|dx|_|_d|_dx|_|_dSN drrmaxlistmaxtuplemaxdict maxstringmaxotherr:s rrzHTMLRepr.__init__ 9 d')) t} ),,rc ,t|ddddddS)N&z&z>)rhr:rfs rescapezHTMLRepr.escapestS'3VDDDrc,tj||Sr)rrr:rAs rrz HTMLRepr.reprsyv&&&rc tt|drfddt|jz}t||rt ||||S|ttt||j SNr)repr_r) rrCrXr)rrrGrprtrr?r:rlevel methodnames rrepr1zHTMLRepr.repr1s 477J ' ' ; 388DGG,<,B,B,D,D#E#EEJtZ(( ;0wtZ00E:::{{4Q 0 0$-@@AAArct||j}t|}d|vr=dt|ddvr*d|dz||z|dzSt jdd||S)Nr\\rKrrz-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)z\1)rpr>rrhrGrMrNr:rrNtesttestreprs r repr_stringzHTMLRepr.repr_string sAt~&&:: 4<)rGrprtrr>r+r)r:rrNs r repr_instancezHTMLRepr.repr_instance-s` G;;tGDGG$4$4dnEEFF F G;;1EEFF F F Fs AA$A*N) r)rrr@rrGrrPrWrepr_strr[ repr_unicoderrrr4r4 sLL--- EEE'''BBB - - -HGGG LLLrr4ceZdZdZeZejZejZdZddZ ddZ d Z d Z d Z d Zd ZdZdZdZdZdiiifdZddZddZddiifdZdZddiiidfdZddZeZddZddZdS) HTMLDocz'Formatter class for HTML documentation.cd|d|dS)Format an HTML page.zN Python: z z r)r:titlecontentss rpagez HTMLDoc.page>sUUHHH& &rrKcd|d|pddS)zFormat a page heading.zU
 
z
 z
r)r:rbextrass rheadingzHTMLDoc.headingJs$ 55&$H$$ & &rNrfc | dd|zzdz}d|d|d}|r|d|d |d |d |d |d z}n|d|d|d|d z}|d|zzS)z Format a section with a heading.Nzrfzz-

z z-decor">z
 
z
z z
z. %s
r) r:rbr"rcwidthprelude marginaliagaprPs rsectionzHTMLDoc.sectionSs  .E1AAIMJ 33   NVcc:::sssGGGSSS::FF V8;ZZZNNFIHTTTrc(d|z}|j|g|RS)z$Format a section with a big heading.z&%s)rp)r:rbrs r bigsectionzHTMLDoc.bigsectionhs&85@t|E)D))))rc ~||}t|dddddddd S)z!Format literal preformatted text. z rrfrS
)rG expandtabsrhrFs r preformatzHTMLDoc.preformatmsB{{4??,,--tVWfg (D(<< rurkz%s
)rWrange)r:listr*rProwscolrs r multicolumnzHTMLDoc.multicolumnssD A !#88 & &C88F48T#Xd]33 A As4yy==#ffT!Woo5@Fg%FF+f44rc d|zS)Nz%srrFs rgreyz HTMLDoc.greys !?$!FFrc:|D]}||vrd||d|dcS|S)z:Make a link for an identifier, given name-to-URL mappings. r)r:r#dictsr5s rnamelinkzHTMLDoc.namelinksE B BDt|||04T DDDAAAA rc |jtj|j}}t ||r1t |||urd|jd|dt||dSt||S)zMake a link for a class.r.html#rr)r)r rrrrrr])r:rAr\r#rs r classlinkzHTMLDoc.classlinks 8I(J(Jf 64  CWVT%:%:f%D%D%Dy'A'A'A'AC C)))rc(d|jd|jdS)zMake a link for a module.r.html">r)r)rIs r modulelinkzHTMLDoc.modulelinks-3___foooNNrc|\}}}}|r||S|r |d|d}nd|z}|rd|z}n|}d|d|dS)z;Make a link for a module or package to display in an index.rr'z%s.htmlz"%s (package)rrr)r)r: modpkginfor#r rshadowedurlrfs r modpkglinkzHTMLDoc.modpkglinks{*4'dIx  #99T?? "  #"&$$-CCd"C  7$>DDD(+TTT22rcd|d|dS)zMake a link to source file.z%sNrK) rGrMcompilesearchspanrgroupsrhintrrX)r:rfrGfuncsclassesrrherepatternmatchstartendrschemerfcpepselfdotr#rs rmarkupzHTMLDoc.markupsu&4;*344 NN4..E %JE3 NN66$tEz"233 4 4 438<<>> 0Cc7D =fSkk))#x88SSSABBBB =@3s88KVVC[[[[IJJJJ =9CHHDVVC[[[[IJJJJ =CE ?c))NN7T]]4-I-I#IJJJJNN#=#DEEEEc#a%iC''t}}T7E7KKLLLLt}}T7;;<<<D7 8 vvd455k**+++wwwrcd}|D]}t|tdur|\}}|dz}||||z}|rU||fkrNg}|D]+} ||| |,|dzd|zdz}|dz}t|tgur|d||||zz}d |zS) zAProduce HTML for a class tree as given by inspect.getclasstree().rKrz

r, )z
z
%s
z
%s
)rCrrrX formattree) r:treer\parentrPentrycbasesparentsr<s rrzHTMLDoc.formattrees ' 'EE{{d2hh&& 5"==$..G"<"<<EUvi// G %FFt~~dG'D'DEEEE#c\DIIg,>,>>DF)+eR(("3doo7A7'7'#'' 6))rc |j} |j}n#t$rd}YnwxYw|d}g}t t |dz D]B}|dd|d|dzd||dCd||ddz} d| z} tj |} tj | } | | } n#t$rd } YnwxYwg}t|d rwt!|j}|dd d kr*|ddd kr|d d}|d|zt|dr:|t!|j|r| dd|zz} |}|dt-z}nd}| d| z|z}tj|tj}gi}}tj|tjD]T\}}|tj|p||ur5t9|||r$|||fd|zx||<||<U|D]z\}}|jD]m}|j|j}}t>j !|}||kr8|r6t||r&tE|||ur||vr|dz|zx||<||<n{gi}}tj|tj#D]\}}|*tj$|stj||urOt9|||r>|||fd|z||<tj%|r ||||<g}tj|tLD]-\}}t9|||r|||f.'tQ|j)||}|od|z}|d|zz}t|drg}tUj+|j,D]\}}} |||| df |-.|j/}!|0dd|!z}n5|r3.|fd}!|0dd|!z}|rd |D}"1tj2|"d|g}!|D]1\}}|!3|||||2|0d!d"d#|!z}|rcg}!|D]1\}}|!3|||||2|0d$d%d#|!z}|r`g}!|D].\}}|!3||/|0d&d'd(|!z}t|d)rG't!|j4j)}!|0d*d+|!z}t|d,rG't!|j5j)}!|0d-d.|!z}|S)/z/Produce HTML documentation for a module object.NrrTrz.html" class="white">rr!%srr $Revision: $z version %srz (%s)rz-
Module ReferencerKzindex
rrz#-z%sz

%s

rrzPackage Contentsz pkg-contentc:|dSry)r)tr:s rrz#HTMLDoc.docmodule..9s4??1Q4#8#8rModulescg|]\}}|Srrrrrs rrz%HTMLDoc.docmodule..>s;;;>R!,VW_EE : :JC"5))3V>>sC00:NNC<00003c 9E#Ju! P PJC P P#}doW11d??v?'F2F?vs++t33"e||7>7IC7OOE#Jt  P2u!,VW5FGG L LJC!%(( ,3,=e,D,D,N,NsC00LLL#u...!%E#J)%00Ks%,!,VV<< * *JC3V,, * S%L)))kk&..$.%GG:4s:-#-- 6: & & 4G,3,@,Q,Q : :('5ua89999 LLNNN''AAHdoo"M8===FF  4''8888::Hdoo=(444F  8;;7;;;I 4Y B BDIIKH% O O U eS$u M MNNNNdoo7CHHX$6$6888F  >H# O O U eS$u M MNNNNdoo[#((8*<*<>>>F  9H" ; ; U eS 9 9::::doo h 7 7999F 6< ( ( L{{3v'8#9#94>JJHdooh(KKKF 6= ) ) N{{3v'9#:#:DNKKHdooiHMMMF s !!A D DDc> !j}|p|}j}g} | j G fdd} | tt j} t | dkrV d| D])}  d| j z* d fd}  fd} fd }fd tD}i|D]O\}}}}d |zd z|zx|<} t|}n#t$rYnwxYw ||<@#t$rYLwxYw|r| r| !n|d d!t|!fd\}}t jur!t jur|}]!urd}nd!j z}|dz }t%|| d|z|d}| d|z|d}| d|z|d}|d|z|d}|d|z|d}|d|z|d}|gksJ|}|d| } ||kr d|d |d!}n d"|d#|d$|d%}|rPg}|D]0} || j 1|d&d'|zz}d} t j}n#t*tf$rd(}YnwxYw|r2t-|}|r!|d)kr||zd*z}t1}|r||pdz}|j}|od+|z}|d,| d-|S).z.Produce HTML documentation for a class object.c eZdZdZfdZdS)(HTMLDoc.docclass..HorizontalRulecd|_dSrneedoner@s rrz1HTMLDoc.docclass..HorizontalRule.__init__f   rc:|jr dd|_dS)Nz
rTrr:pushs rmaybez.HTMLDoc.docclass..HorizontalRule.maybeh%<#DNNN  rNr)rrrrrsrHorizontalRulere= ! ! ! ! ! ! ! ! ! !rrrUz&
Method resolution order:
z
%s

c ft||\}}|r ||D]x\}}}} t |}||  n0#t$r#|| YnwxYwdy|S)NrSrrrr Exceptionr)msgrrokr#rhomeclsrrrhrmdictrrArr:s rspillzHTMLDoc.docclass..spillxs#E955IB  S 24  .D$H ' 5 5 T]]5$(-wvGGHHHH %===T\\%s;;<<<<<=DJJJJLsA55*B"!B"ct||\}}|rI ||D]'\}}}} || (|Srrrr rrrrr#rrrrrrr:s rspilldescriptorsz*HTMLDoc.docclass..spilldescriptorsx#E955IB 9 S 2499.D$DeT3778888Lrct||\}}|r ||D]\}}}}t||}t |} | sd|znAt |j } d| z} d|| dd|S)Nz
%s
z
%s
rrS)rrrrrQrrw)rrrrr#rrrr<r=rrrrrrArr:s r spilldataz#HTMLDoc.docclass..spilldatas#E955IB  S 24  .D$==)>)>cJJD --CB0478888"kk&--*/%AA@3FddCCC@AAADJJJJLrcHg|]\}}}}t|||||fS)r9rrr#rr"rrAs rrz$HTMLDoc.docclass..L333+T4e&1113$c5)333rr-rc|duSNrUrr thisclasss rrz"HTMLDoc.docclass..AaDI z Methods %sc|ddkSNrTmethodrrs rrz"HTMLDoc.docclass..AaDH$4rzClass methods %sc|ddkSNrTz class methodrr s rrz"HTMLDoc.docclass..AaDN$:rzStatic methods %sc|ddkSNrTz static methodrr s rrz"HTMLDoc.docclass..AaDO$;rzReadonly properties %sc|ddkSNrTrrr s rrz"HTMLDoc.docclass..qt7J/JrzData descriptors %sc|ddkSNrTrrr s rrz"HTMLDoc.docclass..qt7H/HrzData and other attributes %sc|ddkSNrTrrr s rrz"HTMLDoc.docclass..!rrK class zz = class r(%s)rN()rtz&%s
 
rbrj)r)r{rrrgetmrorWrrrrrrrGpopleftrbuiltinsrArrX signature ValueErrorrDrGrQrrwrp)"r:rAr#rrrrrealnamerrcrmror<rrrrrrrranchor inheritedtagrbrdeclr%argspecr=rrrrs"`` ``` @@@@rrzHTMLDoc.docclassZs?x  ! ! ! ! ! ! ! ! ! !^  GN6**++ s88a<< HHJJJ D: ; ; ; J J_t~~d6<6G(I(IIJJJJ DOOO            $                    $3333/CF/K/K333).   %Cw"%*s"2S"8 8E#J --      &e     !  (KKMM !!HQK *52M2M2M2MNN E9X_,,ho1M1M!f$$$)DNN9;A;L-N-NN 9 C E6 * * *E,,e4466EE,s2E::<D||E7Ha===s6D00 D=<D=E EE'K<<LLcX|d||zSz)Format an argument default value as text.=)rrrIs r formatvaluezHTMLDoc.formatvalues%yytyy000111rc|j}|p|}|r|jpddz|z} d} d} t|rp|jj} |r| |urd|| |z} nD|j$d||jj|z} nd|| |z} t j|st j|rd} nd} ||kr d | d |d }n>|r/t j||g|urd |jdz|zd |d}d} n|}d | d |d|}d}t j |rU t j |}n#ttf$rd}YnwxYw|r$t|}|dkrd|z}|dd}|sd}| |z||z| o|d| zz}| rd|zS|t#||j|||}|od|z}d|d|dS)z;Produce HTML documentation for a function or method object.rKrr from N method of %s instance unbound %s methodasync rz ">rz
%sz
%s
z%
%s
rzr)r)rwr*r+rriscoroutinefunctionisasyncgenfunctiongetattr_staticr`r%r&rGrDrGrrrQrw)r:rAr#rrrrrr'r)noteskipdocsimclassasyncqualifierrbreallinkr-r%r,r=s rrzHTMLDoc.docroutines?x$*c1D8 F # # No/G N"$$#dnnWc&B&BBD?.3dnn1378788DD0$..2M2MMD  ' / / *622 %NNN 8   >DffhhhOEE $g,R2>>&HHHK#%000(((<#hh(E  V $ $ , !#-f55  * ! ! !  ! ,i..z))BTIE&admG G% G(<(<<AHyy?$FGGI  <+d2 2++vwIICGACGCC15sss; ;s2EEEcg}|j}|r|d|z|t||j}|r|d|z|dd|S)z1Produce html documentation for a data descriptor.z!
%s
z&
%s
rrK)rrrQrwrXr:rAr#rrrrr=s rrzHTMLDoc.docdataAs~  > D5< = = =kk&..$.99  B D:S@ A A A YwwwrcD|rd|zpd}|||zS)z-Produce HTML documentation for a data object.z%s = rKr)r:rAr#rrlhss rrzHTMLDoc.docotherQs.6/$6<"TYYv&&&&rcFg}|i}tj|gD]@\}}}td|Dr ||d|||vfd||<A||||j}||d|S)z2Generate an HTML index for a directory of modules.Nc3PK|]!}dt|cxkodkncV"dS)iiN)ordrchs r z HTMLDoc.index..[sD@@RFc"gg////////@@@@@@rrKrTr)rranyrrr}rrr)r:rrrrr#rrcs rrz HTMLDoc.indexVs  X%,%93%%@%@   !HdE@@4@@@@@  NND"eTX-=> ? ? ?HTNN ##GT_==sGX666rrK)rirKNrfrrNNN)r)rrr@r4_repr_instancerrGrdrhrprrrwr}rrrrrrrrrrr1rrr0rrrrrr_r_5s11XZZN  D  "F & & &&&&&3419UUUU**** <<< 5 5 5GFF***OOO 3 3 3888#'b"b' ' ' ' V****&ssssj%)d"b`>`>`>`>D222'+R?<?<?<?rrhrTs rrWzTextRepr.repr_stringvsaAt~&&:: 4<r+r)rZs rr[zTextRepr.repr_instancesF :Q(($.99 9 :"Q[%99 9 9 9s .1AN) r)rrr@rrPrWr\r[rrrrQrQgs]KK--- 555H:::::rrQceZdZdZeZejZdZddZdZ ddZ dd Z dd Z d Z dd Zdd ZeZddZdS)TextDocz'Formatter class for text documentation.c@dd|DS)z(Format a string in bold by overstriking.rKc3&K|] }|dz|zV dS)NrrIs rrKzTextDoc.bold..s*55"rDy2~555555r)rXrFs rboldz TextDoc.bolds#ww55555555r c|sdSfd|dD}|r|d|d<d|S)z6Indent text by prepending a given prefix to each line.rKcg|]}|zSrr)rrprefixs rrz"TextDoc.indent..s<<<4$<<.s-DDyG44DDDDDDrr rrSr\)rCr]rXr) r:rr\rr_rPrrrrs ` rrzTextDoc.formattrees 8 8EE{{d2hh&& 5&9Q+@+@@BUvi//DDDDeDDDG#ftyy/A/A&AAF$eR(($//7Av#8#88 rc  |j}tt|\}}|d||od|zz}t |dd}||}|||d|dzz}|r||d|z}g} t j|t jD]G\} } |t j | p||ur(t| ||r| | | fHg} t j|t j D]Y\} } |*t j | st j | |ur(t| ||r| | | fZg} t j|tD]-\} } t| ||r| | | f.g}t}t!|drt#j|jD]K\}}}|||r| |d z6| |L|||d d |z}g}t j|t jD];\} } | j|d zr| |vr| | <|r@|||d d |z}| rd| D}|t j|d|g}| D]/\} } | || | |0||dd |z}| r`g}| D]/\} } | || | |0||dd |z}| rbg}| D]1\} } | || | |d2||dd |z}t!|dret;|j}|dddkr*|dddkr|dd}||d|z}t!|dr+||dt;|j z}t!|dr+||dt;|j!z}t!|dr+||d t;|j"z} t j#|}n#tH$rd!}YnwxYw||d"|z}|S)#z5Produce text documentation for a given module object.NAMErrNzMODULE 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. DESCRIPTIONr (package)zPACKAGE CONTENTSrSr SUBMODULEScg|]\}}|Srrrs rrz%TextDoc.docmodule..s999:3999rrTCLASSES FUNCTIONSF)rmDATArrrrrVERSIONrDATErAUTHORrCREDITSrFILE)%r)rZrQrprr.rrzr rrrr`r-rdsetrrrraddrrXr_rrrrrrDrrVrrrr(rG)r:rAr#rsynopdescrPrr-rrrrrr modpkgs_namesrr\r submodulesrrcrrs rrzTextDoc.docmodules\vf~~.. tfde.E &FGGfi..''  dll+=vI@F  @dll=$???F!,VW_EE 1 1JC%e,,66AAsC001NNC<000!,VW5FGG / /JC!%(( ,3,=e,D,D,N,NsC00/LL#u...!,VV<< * *JC3V,, * S%L))) 6: & & 8,3,@,Q,Q , ,('5!!'***,NN7\#9::::NN7++++ LLNNNdll"DIIg$6$6888F !,VW5EFF ' 'JC~((44 'M9Q9Q!!#&&&  5 OO   dlldii 33555F  K99999I$Y22D::;H% A A U eS$ ? ?@@@@dll9dii6I6IJJJF  MH# A A U eS$ ? ?@@@@dll; (8K8KLLLF  HH" L L U eS$r J JKKKKdll6499X3F3FGGGF 6= ) ) ?&,--Gss|111gbcclc6I6I!"R%...00dll9g>>>F 6: & & Idll63v3G3GHHHF 6< ( ( Mdll8S9J5K5KLLLF 6= ) ) Odll9c&:L6M6MNNNF %f--DD   DDD $,,vt444 s9W WWcbj}|p|}j}jfd}||krd|z}n|dz|z}|r+t ||} |dd| zz}g} | j tj} n#ttf$rd} YnwxYw| r(t| } | r| dkr|| zdzt} | r| dzttj}t|d kr2d |D]}d ||zd t!d t"Dtj}t|}d}|rXd|d|D]}d |z||kr!dt||z zdzd Gfdd}|fd}fd}fd}fdt)D}|r|r|n|dd t-|fd\}}t.jurt.jur|}\urd}ndt3jz}t5||d|z|d}|d|z|d }|d!|z|d"}|d#|z|d$}|d%|z|d&}|d'|z|d(}|gksJ|}|d| } | s|dzS|dz| d)zdzS)*z4Produce text documentation for a given class object.c"t||Srre)rrs rmakenamez"TextDoc.docclass..makenamesQ?? "rclass z = class r rNr!rSrUzMethod resolution order:r\rKc3K|]=}|jds!|jdk't|jV>dS)rr$N)r)rrrD)rr"s rrKz#TextDoc.docclass..Asa S S3L++C00 S58^z5Q5Q  5Q5Q5Q5Q S SrrrzBuilt-in subclasses:z ... and z other subclassesc eZdZdZfdZdS)(TextDoc.docclass..HorizontalRulecd|_dSrrr@s rrz1TextDoc.docclass..HorizontalRule.__init__Srrc:|jr dd|_dS)NzF----------------------------------------------------------------------rTrrs rrz.TextDoc.docclass..HorizontalRule.maybeUrrNrrsrrrRrrrc Ht||\}}|r ||D]i\}}}} t |} || :#t$r# || YfwxYw|Srr) rrrrr#rrrrrrArr:s rrzTextDoc.docclass..spill[s#E955IB < S 24 < <.D$< ' 5 5 T]]5(,c6;;<<<< %===T\\%s;;<<<<<=LsA22*BBct||\}}|rI ||D]'\}}}} || (|Srrrs rrz*TextDoc.docclass..spilldescriptorslrrc Lt||\}}|r  ||D]k\}}}}t|} t |} n#t$r|j|} YnwxYw | | d|dzl|S)Nrn)rmr=rS)rrrQrr8__dict__r)rrrrr#rrrr=r9rrrArr:s rrz#TextDoc.docclass..spilldataus#E955IB  S 24.D$ --C5%fd33)555%.t45DsD#bcJJLsA  A:9A:cHg|]\}}}}t|||||fSrrrs rrz$TextDoc.docclass..rrrc|duSrrrs rrz"TextDoc.docclass..rrrr z Methods %s: c|ddkSr rr s rrz"TextDoc.docclass..rrzClass methods %s: c|ddkSrrr s rrz"TextDoc.docclass..rrzStatic methods %s: c|ddkSrrr s rrz"TextDoc.docclass..rrzReadonly properties %s: c|ddkSrrr s rrz"TextDoc.docclass..rrzData descriptors %s: c|ddkSrrr s rrz"TextDoc.docclass..rrzData and other attributes %s: c|ddkSrrr s rrz"TextDoc.docclass..rrz | )r)r{rr[maprXrrr%r&rGrDrQrr"rWsortedrC__subclasses__r+rr#rr$rAr]rr`rO)r:rAr#rrr'rr}rbrrcr%r-r=r(r< subclassesno_of_subclassesMAX_SUBCLASSES_TO_DISPLAY subclassnamerrrrrr*r+rrrs`` ` @@@rrzTextDoc.docclasss?x  + # # # # 8  tyy222EEIIdOOk1HB?c2d||zSr/rDrIs rr1zTextDoc.formatvaluesTYYv&&&&rc|j}|p|}d}d}t|r^|jj}|r||urdt ||z}n8|jdt |jj|z}ndt ||z}t j|st j|rd} nd} ||kr||} n7|rt j ||g|urd}||d z|z} d} t j |rh t j |} n#ttf$rd} YnwxYw| r7t| } |d kr"||d z} | dd } | sd } | | z| z|z} |r| dzSt|pd}| dz|o)||dzzS)z;Produce text documentation for a function or method object.rKrr3Nr4r5r6rT = r7z lambda rr8rS)r)rwr*r+r]rr9r:r[r;r`r%r&rGrDrQr`rO)r:rAr#rrr'r<r=r>r?rbr-r%r,r=s rrzTextDoc.docroutines>?x F # # Io/G I"$$#i&=&==D?.3i1378788DD0)GC2H2HHD  ' / / *622 %NNN 8  IIh''EE g,R2>>&HHIIdOOe+h6E  V $ $ , !#-f55  * ! ! !  ! ,i..z)) IIdOOj8E&admG G%/$6  L$; ..&BC$;#"J$++c*:*:*A*A*C*Cd*JK KsD))D?>D?c g}|j}|r)||||dt|pd}|r)||||dd|S)z1Produce text documentation for a data descriptor.rSrK)rr[rQr`rXrBs rrzTextDoc.docdatas~   D4 ! ! ! DJJJVnn"   DS!! " " " DJJJwwwrcP||}|r1|r|dzpd|z}|t|z } | dkr |d| dz}|r||dzpd|z}|st|}|r+|d|t |zdzz }|S)z-Produce text documentation for a data object.rrKrNrkrS)rrWr[rQr`rD) r:rAr#rrrmr=rrchops rrzTextDoc.docothersyy    4)TE\/R47DCII%DaxxUdU e 304506B$> !..C  8 D4;;s3xx00047 7D r)r\)NrKrrN)NNNNN)r)rrr@rQrOrr[r`rprrrr1rrr0rrrrrWrWs11XZZN  D666    AAA ccccJXLXLXLXLt'''5L5L5L5Ln     K      rrWceZdZdZdZdS) _PlainTextDocz2Subclass of TextDoc which overrides string stylingc|SrrrFs rr[z_PlainTextDoc.bold s rN)r)rrr@r[rrrrr s)<<rrc@tat|dS)zCThe first time this is called, determine what kind of pager to use.N)getpagerpagerrss rrrs JJE $KKKKKrchttjdstSttjdstStjrtjstStjdkrtStj dptj dr@tjdkrfdStj ddvrfd Sfd Stj ddvrtStjdkrd Sttd rtj d dkrdSddl }| \}}tj | ttd r2tj d|zdkrdtj|Sttj|S#tj|wxYw)z2Decide what method to use for paging through text.isatty emscriptenMANPAGERPAGERwin32c>tt|Sr tempfilepagerplainrf use_pagers rrzgetpager..#s eDkk9 E ErTERM)dumbemacsc>tt|Sr) pipepagerrrs rrzgetpager..%s %++y A Arc$t|Srrrs rrzgetpager..'s $ : :rc<tt|dS)Nzmore .+sM%++x@@rsystemz(less) 2>/dev/nullrc"t|dS)Nlessrrss rrzgetpager..-sIdF33rNz more "%s"c"t|dS)Nmorerrss rrzgetpager..4s $ 7 7r)rr stdin plainpagerstdoutrplatformr r)rrtempfilemkstempcloseunlinkttypager)rfdrrs @rrrs 39h ' ' 3:x ( ( 9    SZ%6%6%8%8 ||## z**EbjnnW.E.EI; <7 " "EEEE E Z^^F # #'8 8 8AAAA A:::: : z~~f!222 |w@@@r84+?!@!@A!E!E333OOO%%''NRHRLLL 2x  RY{X/E%F%F!%K%K77 ( ( (s92HHH1c.tjdd|S)z%Remove boldface formatting from text.z.rK)rMrNrss rrr:s 6%T " ""rcHddl}||d|jd} |j5} ||n#t $rYnwxYwdddn #1swxYwYn#t $rYnwxYw |dS#t $rYnwxYw()z3Page through text by feeding it to another program.rNTbackslashreplace)shellrerrors) subprocessPopenPIPErwriteKeyboardInterruptrwait)rfcmdrprocpipes rrr>s4   Ct:?#5  7 7D  Z 4  4    $                           IIKKK E     D  siA+AAA A AAA A+A##A+&A#'A++ A87A8=B B B c ddl}|5}tj|d}t |ddt jdkrtjdnd5}| |dddn #1swxYwYtj |dz|zd zddddS#1swxYwYdS) z.os#)..++rc^tjddddS)NrrT)r rrrrrrzttypager..rs&#),,..ss3BQB7rLINESrTz -- more --)qQz ) rS)bB)rrrttyr rfileno tcgetattr setcbreakrr8ioUnsupportedOperationrr r)rr&rrrXflush tcsetattr TCSAFLUSH) rfrYrroldgetcharhrSincrs rrrgs .&& ' ' - -d 3 3E8 Y    mmB b++ )@ A8887782 BJNN7A..//AA   AAA  66Aa%C 5#;//$6777ABBi  J  \ * * * J      AJ   !1222l""   !1E!H!Simply print unformatted text. This is the ultimate fallback.N)r rrrrrss rrrs.JU>$//0011111rctj|rA|jtjvr d|jzSt |dr d|jzSd|jzStj|r d|jzStj|r$d|jj d|jjd|jStj |r$d|jj d|jjd|jStj |r d |jzStj |r d |jzStj |r d |jzSt|jS) z/Produce a short description of the given thing.zbuilt-in module rzpackage zmodule zbuilt-in function zgetset descriptor rzmember descriptor r~z function zmethod )rr_r)r rrr-isgetsetdescriptorr3rr4r r,r(rC)things rdescribers|. >S5 5 5%6 6 5* % % .. .u~- -5#en44!%((   ) ) )5+=+F+F+F NN !%((   ) ) )5+=+F+F+F NN u)%.((%  ,U^++*5>)) ;; rcd|dD}d\}}|t|krLtd|d|dz|}|r||dz}}nn|t|kL|r|}nt}||dD]%} t ||}#t $rYdSwxYw|S)z@Locate an object by name or dotted path, importing as necessary.cg|]}||Srr)rrs rrzlocate..s 6 6 6d 6T 6 6 6rrrNrT)rrWr rXr$rr8)r rrrn nextmodulerArs rlocaters 6 6djjoo 6 6 6EIFA c%jj..t!t 5 5yAA  :q1uqvv c%jj..abb  VT**FF   444  MsB.. B=<B=ct|tr(t||}|td|z||fSt |dd}|t|tr|ndfS)zDGiven an object or a path to an object, get the object and its name.Nz~No Python documentation found for %r. Use help() to get the interactive help utility. Use help(str) for help on the str class.r))r.rDrrr)rrrAr#s rresolvers% >y)) >,/4455 5u}uj$//js33=dd==r Python Library Documentation: %scN|t}t||\}}t|}tj|}|r(d|vr$|d|d|dzz }n|r||ur |d|jzz }tj|swtj|sctj |sOtj |s;t|s,t|dr|j }nt|}|dz }||zdz|||zS)zBRender text documentation, given an object or a path to an object.Nrz in z in module __origin__z objectrt)rfrrrrrfindr)r_r r`r2rIrrrCr)rrbrrendererrAr#rxrs r render_docrsL5),,LFD F  D  v & &F 0t  .tzz#./// 0F&(( //  V $ $ of%% '' &v.. foo  6< ( ( &FF&\\F I D 4<& 8#4#4VT#B#B BBrc| tt|||dS|t|||tdS)zCDisplay text documentation, given an object or a path to an object.N)rrr plaintext)rrbroutputs rr=r=sO~ jy1122222 ZuiCCDDDDDrcXt||\}}tt|t||}t |dzdd5}||dddn #1swxYwYtd|dzdS)z"""""s*B  BBrKcf|i}tj|g|D]\}}}t|dS)zAWrite out HTML documentation for all modules in a directory tree.N)r walk_packagesr)rpkgpathdonerr\rs r writedocsrsF |BT$+$93%$I$I '5 Frc<eZdZiddddddddddd d d d d dddddddddddddddddddid d!d"d#d$d%dd&d#d'd(d)d*d+d,d-d.d/d0dd1dd2d3d4d5d6d7dd8d9d:dd;dd?DZd@dAdBdCgeRdDdEdFdGdHdIdJZdKdLdMdNdOdPdQdRdSdTdUdVdVdWdWdXZeD]1\ZZ e D])Z e e eZ ee vre dYzezZ e ee <*2[[ [ [ idZd[dRd\d]d^d_d`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdZdxdZidydzdOd{d|d}d~ddddd#ddddddddddddddddddddddidddddddddddddddddddSdddddkdddddddndddidddddddddLddddddd“ddēd+dœddƓdd ddɓdd˓dddd6dd#ddddddӜZ ddՄZ edքZedׄZd؄ZeZefdلZdڄZdۄZd܄Zd݄ZddZdZdZdZddZddZdZddZ dS)HelperFalserKNoneTrueandBOOLEANaswithassert)rrKasync)r rKawait)r!rKbreak)r" while forclass)r$zCLASSES SPECIALMETHODScontinue)r%r#def)functionrKdel)r( BASICMETHODSelififelse)r,r#excepttryfinallyfor)r0zbreak continue whilefromimportglobal)r3znonlocal NAMESPACES)r+ TRUTHVALUE)r2MODULESin)r6SEQUENCEMETHODSis COMPARISONlambda)r:rmnonlocal)r;zglobal NAMESPACESnotorpass)r>rKraise)r? EXCEPTIONSreturn)rArm)r.r@while)rBzbreak continue if TRUTHVALUE)rz CONTEXTMANAGERS EXCEPTIONS yieldyield)rCrKc"g|] }dD]}||z S)'rr)rprs rrzHelper.?s)LLLaLLAAELLLLr)rfrSurFz'''rr)+r***r&z//%<<>>rC|^~rDrE<=>===!=<>)rDrErSrTrUrVrW)rrR) z+=z-=z*=z/=z%=z&=z|=z^=z<<=z>>=z**=z//=)rNrOrCrPrQrR)jJ)STRINGS OPERATORSr9UNARYAUGMENTEDASSIGNMENTBITWISECOMPLEXzOPERATORS FORMATTINGPOWERzTUPLES LISTS FUNCTIONSz ATTRIBUTES FLOAT MODULES OBJECTSELLIPSISzSLICINGS DICTIONARYLITERALSz def classrZ PRIVATENAMESzPRIVATENAMES SPECIALMETHODS BACKQUOTESzTUPLES FUNCTIONS CALLSzLISTS SUBSCRIPTS SLICINGS)rMrL,rrk:@rrr`rr[]rTYPES)typeszRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect)stringsz4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES STRINGMETHODS)zstring-methodszSTRINGS FORMATTING FORMATTING) formatstringsr[UNICODE)rlz:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPESNUMBERS)numberszINTEGER FLOAT COMPLEX TYPESINTEGER)integersz int rangeFLOAT)floatingz float mathr_) imaginaryz complex cmath SEQUENCES)typesseqz$STRINGMETHODS FORMATTING range LISTSMAPPINGS DICTIONARIESrm)typesfunctionsz def TYPESMETHODS) typesmethodszclass def CLASSES TYPES CODEOBJECTS)zbltin-code-objectszcompile FUNCTIONS TYPES TYPEOBJECTS)zbltin-type-objectsz types TYPES FRAMEOBJECTS TRACEBACKSNONE)zbltin-null-objectrK)zbltin-ellipsis-objectSLICINGSSPECIALATTRIBUTES) specialattrsrKrl)rkz!class SPECIALMETHODS PRIVATENAMESr5) typesmodulesr2PACKAGES EXPRESSIONS)zoperator-summaryzlambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIESr[ PRECEDENCEOBJECTS)objectsrjSPECIALMETHODS) specialnameszbBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSESr)) customizationzhash repr str SPECIALMETHODSATTRIBUTEMETHODS)zattribute-accesszATTRIBUTES SPECIALMETHODSCALLABLEMETHODS)zcallable-typeszCALLS SPECIALMETHODSr7)sequence-typesz(SEQUENCES SEQUENCEMETHODS SPECIALMETHODSMAPPINGMETHODS)rzMAPPINGS SPECIALMETHODS NUMBERMETHODS)z numeric-typesz*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODS EXECUTION) execmodelz%NAMESPACES DYNAMICFEATURES EXCEPTIONS NAMESPACES)namingz3global nonlocal ASSIGNMENT DELETION DYNAMICFEATURESDYNAMICFEATURES)zdynamic-featuresrKSCOPINGFRAMESr@)rztry except finally raise CONVERSIONS) conversionsrK IDENTIFIERS) identifierszkeywords SPECIALIDENTIFIERSSPECIALIDENTIFIERS)z id-classesrK)zatom-identifiersrKLITERALS)z atom-literalsz=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALSTUPLES TUPLELITERALS) exprlistszTUPLES LITERALSLISTS)ztypesseq-mutable LISTLITERALSr)listszLISTS LITERALS) typesmappingDICTIONARYLITERALSr)r5zDICTIONARIES LITERALS ATTRIBUTES)zattribute-referencesz(getattr hasattr setattr ATTRIBUTEMETHODS SUBSCRIPTS) subscriptionsr7r)slicingsr7CALLS)callsr)powerrr\)unaryrBINARY)binaryrSHIFTING)shiftingrr^)bitwiser) comparisonszEXPRESSIONS BASICMETHODS)booleanszEXPRESSIONS TRUTHVALUE ASSERTION ASSIGNMENT) assignmentr]r]) augassignrDELETION RETURNING IMPORTING)compoundzfor while break continue)truthz if while and or not BASICMETHODS)debuggerpdb)zcontext-managersr) CONDITIONALLOOPINGr4 DEBUGGINGCONTEXTMANAGERSNc"||_||_dSr)_input_output)r:inputr s rrzHelper.__init__s  rc(|jp tjSr)rr rr@s rrz Helper.inputs{'ci'rc(|jp tjSr)rr rr@s rr z Helper.outputs|)sz)rctjdddkr |dSd|jjd|jjdS)NrTrj?rKrDrz instance>)rstackr+rrr@s r__repr__zHelper.__repr__s\ =??1 a C ' ' DFFF2 (&*^%>%>%>%)^%@%@%@B Brc6||jurM ||dS#t$r(}|j|dYd}~dSd}~wwxYw|||jddS)NrSa 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. )_GoInteractiverrr rintrointeract)r:requestes r__call__zHelper.__call__s $- - - , '""""" , , , !!Q(((+++++++++ , JJLLL MMOOO K       s" AAAc|jd |d}|sdSn#ttf$rYdSwxYw|}t |dkr6|d|dcxkrdvrnn|d|ddvr |dd}|d vrdS|d kr|n| |) NrSTzhelp> rUrrrErT)rquitr) r rgetlinerEOFErrorrVrWr+rrr:rs rrzHelper.interacts $ # ,,x00%%%x0    mmooGG q  WQZ72;%L%L%L%L*%L%L%L%L%L '!B$-77!!B$-}}-//&    '"""# #s7A  A c|jtjurt|S|j||j|jS)z.Read one line, using input() when appropriate.)rr rr rrr)r:prompts rrzHelper.getlines[ : " "== K  f % % % K     :&&(( (rct|tdurv|}|dkr|n}|dkr|na|dkr|nE|dkr|n)|dddkr.||dn||jvr||n|d vrtt|d n||j vr| |n||j vr| |nn|rt|d |j nTttd |j n7t!|t"r |nt|d |j |jd dS) NrKkeywordssymbolstopicsrzmodules rT)rrrz Help on %s:)r rS)rCrV listkeywords listsymbols listtopics listmodulesrr showsymbolr=evalr showtopicrrrDr.rr rrs rrz Helper.helps ==DHH $ $mmooG*$$d&7&7&9&9&9&9I%%t'7'7'9'9'9'9H$$doo&7&7&7&7I%%t'7'7'9'9'9'9! **  !34444DL(($//'*B*B*B*B555DMM=1111DM))4>>'+B+B+B+BDK'')@)@)@)@ ?#g}T\JJJJJc=>>>>>  ( ( ?$$&&&&'=>>>> $rc|jddtjddzdS)Na Welcome to Python {0}'s help utility! If this is your first time using Python, you should definitely check out the tutorial on the internet at https://docs.python.org/{0}/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". z%d.%drU)r rr*r r/r@s rrz Helper.introsK  F7S%bqb) )** , , , , ,rrPc tt|}||z}t||zdz |z}t|D]}t|D]}||z|z}|t|krb|j||||dz kr9|jdd|dz t||z zz|jddS)NrTrrS)rzrrWryr r) r:itemscolumnsrlcolwr{rowr|rs rrzz Helper.list#sVE]]##E W$q(W4;; $ $CW~~ R R$J$s5zz>>K%%eAh///Wq[(( ))#tax#eAh--7O0P*PQQQ K  d # # # # $ $rc|jd||jdS)NzN Here is a list of the Python keywords. Enter any keyword to get more help. )r rrzrr~r@s rrzHelper.listkeywords0sI     $-$$&&'''''rc|jd||jdS)Nzx Here is a list of the punctuation symbols which Python assigns special meaning to. Enter any symbol to get more help. )r rrzrr~r@s rrzHelper.listsymbols7sI     $,##%%&&&&&rc|jd||jdS)NzN Here is a list of available topics. Enter any topic name to get more help. )r rrzrr~r@s rrzHelper.listtopics?sI     $+""$$%%%%%rcf ddl}n+#t$r|jdYdSwxYw|j||j|}|s,|jdt|zdSt|tdur| ||S|\}} |jj|}n;#t$r.|jdt|zYdSwxYw| dz}|r |pddz|z}|rbddl }dd |zdz} || d } |d d | zz }t!|dS) Nrt Sorry, topic and keyword documentation is not available because the module "pydoc_data.topics" could not be found. zno documentation found for %s rKrSrRelated help topics: rHz %s )pydoc_data.topicsrr rrrrrrCrKeyErrorrVtextwraprXrwrapr) r:topic more_xrefs pydoc_datatargetlabelxrefsr=rrf wrapped_texts rrzHelper.showtopicFs  $ $ $ $ $    K      FF    (9(9%(@(@AA  K  ?$u++M N N N F <<488 # #>>&*55 5 u #*51CC    K  ?$u++M N N N FF iikkD   5[bC'*4E  6 OOO*TYYu{{}}-E-EELD#==r22L 8dii 555 5C c s$// C 4DDc\ ddl}n#t$rYdSwxYw|j||j|}|st dt |tr|||S|\}}|jj|}|r |pddz|z}||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)rrKzcould not find topicrKr) rrrrrr&r.rD _gettopic)r:rrrrrrr=s rrzHelper._gettopicfs $ $ $ $ $        (9(9%(@(@AA 5344 4 fc " " 6>>&*55 5 u&u-  5[bC'*4EEzs  c~|j|}|d\}}}|||dS)Nr)r partitionr)r:symbolrrrrs rrzHelper.showsymbolsAf% **3//q% ue$$$$$rc|r>|jd|t|dS|jdi}|fdfd}t ||||jddS)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... c|r|dddkr |dddz}|ddkrd||<dSdS)N .__init__rirrrT)find)r r\rxrs rcallbackz$Helper.listmodules..callbacks]:wrss|{::%crcl\9G<<$$q(('(GG$$$)(rc"d|ddSrr)r\rs ronerrorz#Helper.listmodules..onerrorsw-----rrz 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 rr*apropos ModuleScannerrunrzr~)r:rrrrs @rrzHelper.listmoduless   K   F3KK     CLLLLL K     G6= ) ) ) )  . . . . . OO  '  : : : IIgllnn % % % K       rr)rrrM)!r)rrr _strprefixes_symbols_inverserrrsymbols_r rrrr/rr rrArrrrrrrzrrrrrrrrrrrr s$$$ $ y $ f $ . $ $ $ '$ 4$ -$ $ &$ $ %$ %!$" 5#$$$ .%$& '$( 3)$* "+$, '-$. '/$0 l1$2 )3$4 55$6 y7$8 i9$:  ;$< (=$> )?$@ $A$B :C$D !U" H#U$ <%U& 'U( g)UU* )+U, 9-U. 1/U0 A1U2 -3U4 H5U6 .7U> ]?U@ mAUB 'CUD 4EUJ IKUL MMUN EOUP /QUT GUUV ,WUUUZ K[U\ W]U^ 3_U` {U| ?}UUU~ ZU@ :AUB 3CUD )EUF )GUH )IUJ +KUL /MUN -OUP AQUR 9SUT XUUV ;WUX =YUZ E[U\ X]U^ X_UU`;C(7iUUUFn((X(**X*BBBVXXN- ###*)))   *,,," $ $ $ $((('''&&&@6%%% rrceZdZdZddZdS)rz7An interruptible scanner that searches module synopses.Nc|r|}d|_i}tjD]}|dkrd||<||d|dt |jpd}|dd}|dz|z}||dkr |d||tj |D]\} }} |jrn||d|d! tj | |} n#t$rYDwxYw| j } t| d r | |} n#t$r|r ||YwxYwt!t#j| pd}t| d r| |}n{d}nx t(j| }n#t.$r|r ||YwxYw|jr|jdnd}t3|d d}|dz|z}||dkr |||||r |dSdS) NF__main__rTrKrSrrr get_source get_filenamer)r+rr rrr@rrrr _get_specrrrrrrrStringIOrrrrrrr)r:rr completerrseenr\r#rxrrrrsourcer rs rrzModuleScanner.runs !ciikk / 6 6G*$$ !W ;HT7B////%g..6<"D::d++A.D"U?T1Dzz||((--22 w555(/(=g(N(N(N$ 2$ 2 $Hguy {w++++",Xw??DD"H6<00;!!'!2!27!;!;$!!!"-#GG,,, !+2;v+>+>??E2Dv~66$%227;;#!!*!5!;!;D!A!A&!!!"-#GG,,, !>D^S6>4466q99QSD"6*T::D-::<<$$S))Q..HT7D111   IKKKKK  s62D DD0EE E 0GG+*G+rN)r)rrr@rrrrrrs.AA888888rrcd}d}tj5tjdt|||ddddS#1swxYwYdS)zAPrint all the one-line module summaries that contain a substring.cf|dddkr |dddz}t||od|zdSNr r riz- )r)r r\rxs rrzapropos..callbacksF 233<; & &crcl\1G gt+t ,,,,,rcdSrrr\s rrzapropos..onerrors rignorerN)warningscatch_warningsfilterwarningsrr)rrrs rrrs---    " "<<)))Hc7;;;<<<<<<<<<<<<<<<<<>> 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.monotonic() >>> timeout = 1 #seconds This is a short timeout for testing purposes. >>> while serverthread.serving: ... time.sleep(.01) ... if serverthread.serving and time.monotonic() - starttime > timeout: ... serverthread.stop() ... break Print any errors that may have occurred. >>> print(serverthread.error) None rNceZdZdZdZdS)!_start_server..DocHandlercT|jdrd}nd}|d|dd|z||j||j|ddS) zProcess a request from an HTML browser. The URL received is in self.path. Get an HTML page from self.urlhandler and send it. z.csstext/css text/htmlz Content-Typez%s; charset=UTF-8rN) r r send_response send_header end_headerswfiler urlhandlerr)r: content_types rdo_GETz(_start_server..DocHandler.do_GET. s y!!&)) +) *   s # # #   ^-@<-O P P P       J  T__ <)))/ : : : : :rcdSrr)r:rs r log_messagez-_start_server..DocHandler.log_message> s DrN)r)rrr9r;rrr DocHandlerr., s2 : : :      rr<c&eZdZdZfdZdZdS) _start_server..DocServerc||_|j|f|_||_|j||j|jd|_dSNF)hostaddressrr<rhandlerr)r:rAportrs rrz)_start_server..DocServer.__init__D sGDI It,DL$DM I  tT\4< @ @ @DIIIrc|jsQ|jgggd\}}}|r||jQ|dSry)rselectsocketrhandle_request server_close)r:rdwrexrFs rserve_until_quitz1_start_server..DocServer.serve_until_quitK s{i *#]]DK,>,>,@,@+A2r1MM B*'')))i *        rcv|j||jr||dSdSr)r<server_activaterr@s rrOz0_start_server..DocServer.server_activateR sD I % %d + + +} $ d##### $ $rN)r)rrrrMrO)rFsr DocServerr>B sL         $ $ $ $ $rrPc6eZdZfdZfdZdZdZdS)#_start_server..ServerThreadc||_||_t||_j|d|_d|_dSr@)r7rArrDThreadrservingerror)r:r7rArD threadings rrz,_start_server..ServerThread.__init__Y sG(DODID DI   % %d + + + DLDJJJrc: jj__jj_t|j_|j |j |j }||_ | dS#t$r}||_Yd}~dSd}~wwxYw)zStart the server.N)server HTTPServerr<rCrMessage MessageClass staticmethodr7rArDready docserverrMrrV)r:docsvrrr<rPemailhttps rrz'_start_server..ServerThread.runa s !%!7 $. !*/-*? '(4T_(E(E %"49diDD!''')))))     sA9A>> BBBcpd|_|j|_|j|_d|j|jfz|_dS)NTz http://%s:%d/)rUrA server_portrDr)r:rYs rr^z)_start_server..ServerThread.readyn s5DL DI*DI&$)TY)??DHHHrcpd|j_|d|_d|_d|_dS)z&Stop the server and this thread nicelyTNF)r_rrXrUrr@s rstopz(_start_server..ServerThread.stopt s4"&DN  IIKKK"DN DLDHHHrN)r)rrrrr^rf)r<rPrarbrWsr ServerThreadrRW sw              @ @ @      rrgg{Gz?) http.server email.messagerFrWrYBaseHTTPRequestHandlerrZrTrrVrUtimesleep) r7hostnamerDrgthreadr<rPrarbrFrWs @@@@@@r _start_serverrosJpMMMT[7,$$$$$$$DK*$$$*%%%%%%%%%%%y'%%%N\*h 5 5F LLNNNl6> 3l6> Mrr1c G fddt}|fd fd fd fdfd fdfd  fd  fd }|d r |d d}|dkrtjtjt }tj||}t|5}d| cdddS#1swxYwYn|dkr ||Std|d|)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. ceZdZfdZdS)_url_handler.._HTMLDocc @d}d|z}d|d|dd|d S)razpydoc_data/_pydoc.cssz1zH Pydoc: z z z*
z
r)r:rbrccss_pathcss_link html_navbars rrdz#_url_handler.._HTMLDoc.page sE.HC HUUHHHkkmmmmXXX? ?rN)r)rrrd)rvsr_HTMLDocrr s. ? ? ? ? ? ? ?rrwctjdtjddtjd}d|dtjdd S) Nz [rrriz=
Python 
T)tersea
)rGrpython_version python_buildpython_compiler)rrs rrvz!_url_handler..html_navbar s++x/F/H/H/H/H/7/D/F/Fq/I/I/I/7/G/I/I/I/IKLL077DKK(9(E(E(EFFFF+H Hrcd}d}dtjD}||}|ddd|zg}i}tjD]+}|||,|ddd |fS) zModule Index page.cd|d|dSNrrrrr#s r bltinlinkz3_url_handler..html_index..bltinlink 15ttt< Index of Modules
cg|] }|dk| S)rr)rr#s rrz4_url_handler..html_index.. s,((($J&&&&&rz

zBuilt-in Modulesrzf

pydoc by Ka-Ping Yee<ping@lfw.org>

zIndex of ModulesrK) rhr rr}rrr rrrX)rrhnamesrcr!rrs r html_indexz _url_handler..html_index s = = =,, =  ((#":(((##E955UT__ &3&3348 3 3C OODJJsD11 2 2 2 2 ' ( ( ("2778#4#444rc g fd}tj5tjdd}t|||dddn #1swxYwYd}g} d} D]&\}}||||z'| d|zd d |z}d |fS) zSearch results page.cv|dddkr |dddz}||od|zfdSr%r)r r\rx search_results rrz3_url_handler..html_search..callback sPrss|{**!#2#,5  '4+?D4K!@ A A A A Arr(cdSrrr's rrz2_url_handler..html_search..onerror srrNcd|d|dSrrrs rrz4_url_handler..html_search..bltinlink rrz-Search Resultszkey = %srryzSearch Results) r)r*r+rrrhrrrrX) rrrrrrhr#rxrcrrs @r html_searchz!_url_handler..html_search s  B B B B B  $ & & @ @  #H - - -    OO  #w  ? ? ?  @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ = = =,, ;  ( 3 3JD$ NN99T??T1 2 2 2 2T__  gv{{7';';===))sINDEXTopicsr)rhrrrr~r}rr)rrhrrcrs r html_topicsz!_url_handler..html_topics s B B B,, 2  v}))++,,##E955T__ gx)))!!rcd}ttj}d}||}|dd|z}d|fS)zIndex of keywords.rcd|d|dSrrrs rrz6_url_handler..html_keywords..bltinlink rrKeywordsr)rhrrrr~r}rr)rhrrrcrs r html_keywordsz#_url_handler..html_keywords s,, 2  v++--.. B B B##E955T__ +++8##rctj}t||}||\}}||jvrd}nd}d|z}d|z}|d|}|rQt| }d} ||} dd|}|d|d |||ffS) zTopic or keyword help page.KEYWORDTOPICrz
%s
rcd|d|dSrrrs rrz7_url_handler..html_topicpage..bltinlink% s:>$$EErrrrK) rrrrrrhrrrrrr}rprX) rbufhtmlhelprcrrbrhrrs rhtml_topicpagez$_url_handler..html_topicpage s!kmm#s##",,U33% H% % %EEE,, /% 7  #T[[%:%::??57H==  J5;;==))E F F F$$UI66ELL!8'5IIE 55%%((E2335 5rct|d}||dkrtdt|}||}||fS)NrT)rrzcould not find object)rr&rr)rr9rbcontentrs r html_getobjz!_url_handler..html_getobj- sYSA&&& ;3&==455 5 --S))g~rcd}dfdtt||D}||d|z}d|z|fS)Nz$Errorryc3BK|]}|VdSr)rG)rrrs rrKz3_url_handler..html_error..9 sGFFTt{{400FFFFFFrrVz Error - %s)rhrXrrCrr)rrrhrcrs r html_errorz _url_handler..html_error5 s,, 2  ;;FFFF4T#YYDDFFFFFT__S'8DDDc!8++rc|}|dr |dd} |dvr \}}n|dkr\}}n|dkr \}}nd|vr|d\}}}|dkr |\}}n|d kr.  |\}}n#t$r |\}}YngwxYw|d kr@|dvr \}}nK  |\}}n;#t$r |\}}Yn!wxYwtd  |\}}n&#t$r}||\}}Yd}~nd}~wwxYw||S) zGenerate an HTML page for url.r'N)rKrrrr0z search?keyz topic?keyzget?keyz bad pydoc url)rrr&rrd)r complete_urlrbroprrrrrrrrrrs r get_html_pagez#_url_handler..get_html_page> s <<  crc(C ;m##!+ww!,ww ""!.ww ]]3// As%%%0[%5%5NE77;&&:)7)<)<ww%:::)4S)9)9www:9__m++)3wwA-8[-=-=NE77)AAA-;^C-@-@NE777A%_555!,S!1!1w ; ; ;'Z c::NE777777 ;yy(((s`A2D(B&%D(&C>D(CD(C,+D(,DD(D D(( E 2EE r&rTNr0rKr1zunknown content type z for url ) r_rr r dirnamerealpathrrXr readlinesrG)rr8rwr path_herertfprrrrrrvrrrs @@@@@@@@@r _url_handlerr sq???????7???$ 8::DHHHHH6555550*****<""""" $ $ $ $ $555552,,,,,&)&)&)&)&)&)&)&)&)&)&)&)P ~~c!""gz!!GOOBG$4$4X$>$>?? 7<< 3// (^^ +r772<<>>** + + + + + + + + + + + + + + + + +  $ $}S!!! )LLL##N O OOs2'D&&D*-D*T localhost) open_browserrmcddl}tt||}|jrt |jdS|jr/d}|r||j t d|jt ||jratd}| }|dkrn7|dkr||jnt ||jan%#ttf$rt YnwxYw|jr%| t ddSdS#|jr$| t dwwxYwdS) zStart 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> rrzServer stopped) webbrowserrorrVrrUrrrr+rrrf)rDrrmr serverthreadserver_help_msgrs rbrowsers s  x>>L l !!!(>  . OOL, - - - ( #\%5 6 6 6 / " " "& +J''iikk#::CZZOOL$45555/***& +"8,    GGGGG # (!!###&''''' ( (|# (!!###&'''' ('((s+B C,+D?,D D? DD??-E,crt|to"|tjdkSr)r.rDrr sep)rs rispathr s( a   5!&&..A"55rcd|vs#tj|vstj|vrdStjt }tj|}|}||vr5tj||s||| dtj|S)zEnsures current directory is on returned path, and argv0 directory is not Exception: argv0 dir is left alone if it's also pydoc's directory. Returns a new path entry list, or None if no adjustment is needed. rKNr) r curdirgetcwdr rrcopysamefileremoveinsert) given_pathargv0 stdlib_dir script_dir revised_paths r_get_revised_pathr s Z29 22bikkZ6O6Ot**J''J??$$LZ(8(8Z(P(PJ'''29;;''' rcttjtjd}||tjdd<dSdS)zEnsures current directory is on sys.path, and __main__ directory is not. Exception: __main__ dir is left alone if it's also pydoc's directory. rN)rr r argv)rs r_adjust_cli_sys_pathr s< %SXsx{;;L"  rc,ddl}Gddt}t |tjddd\}}d}d}d}d}d}|D]C\} } | d krd }d }| d krt | dS| d krd }| }| d krd }| dkrd }| }D|rt |||dS|s||D]A} t| rEtj | s&td| ztj d t| r.tj | rt| } |rNt| r/tj | rt!| n*t#| nt$| #t&t(f$r.} t| tj dYd} ~ ;d} ~ wwxYwdS#|j|f$rtj tj tjdd} td| tjYdSwxYw)z@Command-line interface (looks at sys.argv to decide what to do).rNceZdZdS)cli..BadUsageN)r)rrrrrBadUsager srrrTzbk:n:p:wFrz-bTz-kz-pz-wz-n)rmrzfile %r does not existapydoc - 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} -n Start an HTTP server with the given hostname (default: localhost). {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. This option can be used in combination with -n and/or -p. {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. )rr)getoptrrr rrrrr r existsrexitrrrrrrrrrVrrr*r)rroptsrwriting start_serverrrDrmoptvalargrrs rclir sMMM#####9###M!]]38ABB<<< d    HCd{{# # d{{ d{{# d{{d{{#    4( F F F F F#8^  Cc{{ 27>>##6#6 .4555  #;;*27>>##6#6*$S//C#c{{&rw}}S'9'9&!#  IIcNNN!23   e     $ L( #!!!grw// <<==a@ : FsF; ! ! ! ! ! !!sKAH1H8AHB'F?=H?G>#G93H9G>>HB JJrr)r)rrN)rKN)r1)br@rrrrrr$importlib._bootstraprimportlib._bootstrap_externalimportlib.machineryimportlib.utilrrr rrrMr r1rkr urllib.parserr) collectionsrreprlibr tracebackrrr$r>r7rIrQrZr]rdrhrpr IGNORECASErrrtrwr}rruall_feature_namesrrrrrrrrrrr r r4r_rQrWrrrrrrrrrrrrfr rrrr=rrrrrrrorrrrrrr)rrrrst%%L ( )  $$$$   ++++++   111f   !!! AAA    GGG bj5r}EE (((   "J899((((0      " %%%%NKKKKK KKK666$ !,,,,`66666666t(((((t(((Tn7n7n7n7n7cn7n7n7d:::::t:::@@@@@@c@@@D G """H###0 / / /FFF *2*2*2X222   6*wyy MOO wyy > > > >KLCCCC6DEEEEE####    UUUUUUUUn vxx;;;;;;;;z < < <UUUpiPiPiPiPX (4+ ( ( ( ( (J6668###T!T!T!l zCEEEEEr