/usr/lib/python3/dist-packages/twisted/python/__pycache__
NameSizeModeActions
compat.cpython-310.pyc153980644editdlrm
components.cpython-310.pyc143640644editdlrm
constants.cpython-310.pyc4680644editdlrm
context.cpython-310.pyc46570644editdlrm
deprecate.cpython-310.pyc252210644editdlrm
failure.cpython-310.pyc189600644editdlrm
fakepwd.cpython-310.pyc72920644editdlrm
filepath.cpython-310.pyc520500644editdlrm
formmethod.cpython-310.pyc127170644editdlrm
htmlizer.cpython-310.pyc35820644editdlrm
lockfile.cpython-310.pyc51380644editdlrm
log.cpython-310.pyc230160644editdlrm
logfile.cpython-310.pyc104590644editdlrm
modules.cpython-310.pyc254690644editdlrm
monkey.cpython-310.pyc23150644editdlrm
procutils.cpython-310.pyc13890644editdlrm
randbytes.cpython-310.pyc37350644editdlrm
rebuild.cpython-310.pyc55780644editdlrm
reflect.cpython-310.pyc191270644editdlrm
release.cpython-310.pyc15250644editdlrm
roots.cpython-310.pyc89330644editdlrm
runtime.cpython-310.pyc56170644editdlrm
sendmsg.cpython-310.pyc25800644editdlrm
shortcut.cpython-310.pyc24640644editdlrm
syslog.cpython-310.pyc33680644editdlrm
systemd.cpython-310.pyc30510644editdlrm
text.cpython-310.pyc42690644editdlrm
threadable.cpython-310.pyc35200644editdlrm
threadpool.cpython-310.pyc105020644editdlrm
url.cpython-310.pyc2790644editdlrm
urlpath.cpython-310.pyc92820644editdlrm
usage.cpython-310.pyc286350644editdlrm
util.cpython-310.pyc279390644editdlrm
versions.cpython-310.pyc3560644editdlrm
win32.cpython-310.pyc48410644editdlrm
zippath.cpython-310.pyc91460644editdlrm
zipstream.cpython-310.pyc88260644editdlrm
_appdirs.cpython-310.pyc8620644editdlrm
_inotify.cpython-310.pyc25800644editdlrm
_pydoctor.cpython-310.pyc57500644editdlrm
_release.cpython-310.pyc181330644editdlrm
_shellcomp.cpython-310.pyc188550644editdlrm
_textattributes.cpython-310.pyc106420644editdlrm
_tzhelper.cpython-310.pyc33850644editdlrm
_url.cpython-310.pyc2690644editdlrm
__init__.cpython-310.pyc5460644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/python/__pycache__/htmlizer.cpython-310.pyc (3582B)
o b*@sdZddlZddlZddlmZddlmZddlmZGdddZ Gd d d Z Gd d d e Z e fd dZ ddZ edkrEe dSdS)z" HTML rendering of Python source. N)escape)List)reflectc@s4eZdZdZd\ZZdZZdZddZ ddZ d S) TokenPrinterzU Format a stream of tokens and intermediate whitespace, for pretty-printing. )rrrutf-8cCs ||_dS)zJ @param writer: A file-like object, opened in bytes mode. N)writer)selfrr 9/usr/lib/python3/dist-packages/twisted/python/htmlizer.py__init__s zTokenPrinter.__init__c Cs8ttdr|tjkr||_dSt|ts||j}|\}}|\}} |j|kr8|d||j|d|_|_ |d||j |j rKd}d|_ n&|tj krat |rXd}n|j r^d}nd }ntj|}|dusmJ|}|||| |_ |j|d7_|j|krd|_ |d v|_ |d krd|_ dSdS) NENCODING r identifierrkeyword parametervariable)sdefsclass:)hasattrtokenizer encoding isinstancebytesencode currentLiner currentCollastIdentifier parametersNAMEr iskeywordtok_namegetlowercount) r typetoken sCoordinates eCoordinateslinesrowscolerowecolr r r printtoken s@           zTokenPrinter.printtokenN) __name__ __module__ __qualname____doc__rrrrrr r.r r r r rs rc@s4eZdZUdZgZeeed<ddZdddZ dS) HTMLWriterzm Write the stream of tokens and whitespace from L{TokenPrinter}, formating tokens as HTML spans. noSpancCs$||_g}t|jd|||_dS)Nr4)rraccumulateClassList __class__r4)r rr4r r r r Os zHTMLWriter.__init__NcCsjt|tr |d}t|}|d}|dus||jvr#||dS|d|dd|ddS)Nrss)rrdecoderrr4r)r r&r%r r r writeUs"   zHTMLWriter.write)N) r/r0r1r2r4rstr__annotations__r r8r r r r r3Gs r3c@seZdZdZgdZdS)SmallerHTMLWriterzi HTMLWriter that doesn't generate spans for some junk. Results in much smaller HTML output. ) endmarkerindentdedentopnewlinenlN)r/r0r1r2r4r r r r r;fs r;c Cst|dt||jjj}zt|jD]}|\}}}}} |||||| qWn tjy2Ynw|ddS)Ns
s
)r8rr.rreadline TokenError) inpoutrprinterr& tokenTypestringstartendr)r r r filterps rKcCsXddl}t|jd|j}t|jdd}t||WddS1s%wYdS)Nrbufferrrb)sysgetattrstdoutopenargvrK)rNrPfr r r main|s  "rT__main__)r2rrhtmlrtypingrrrr3r;rKrTr/r r r r s   6