/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__/roots.cpython-310.pyc (8933B)
o b @sdZddlmZGdddeZGdddZGdddZGd d d ZGd d d eZ Gd ddeZ Gddde Z Gddde Z dS)zf Twisted Python Roots: an abstract hierarchy representation for Twisted. Maintainer: Glyph Lefkowitz )reflectc@eZdZdZdS)NotSupportedErrorzv An exception meaning that the tree-manipulation operation you're attempting to perform is not supported. N__name__ __module__ __qualname____doc__r r 6/usr/lib/python3/dist-packages/twisted/python/roots.pyrrc@s$eZdZdZdZddZddZdS)RequestzI am an abstract representation of a request for an entity. I also function as the response. The request is responded to by calling self.write(data) until there is no data left and then calling self.finish(). NcCtdt|j)z.Add some data to the response to this request.z%s.writeNotImplementedErrorrqual __class__)selfdatar r r write"z Request.writecCr)zOThe response to this request is finished; flush all data to the network stream.z %s.finishrrr r r finish&rzRequest.finish)rrrr wireProtocolrrr r r r r s   r c@seZdZdZddZdS)EntityaZI am a terminal object in a hierarchy, with no children. I represent a null interface; certain non-instance objects (strings and integers, notably) are Entities. Methods on this class are suggested to be implemented, but are not required, and will be emulated on a per-protocol basis for types which do not handle them. cCr)zw I produce a stream of bytes for the request, by calling request.write() and request.finish(). z %s.renderrrrequestr r r render6sz Entity.renderN)rrrr rr r r r r+s rc@seZdZdZdddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZddZddZdS) CollectionzI represent a static collection of entities. I contain methods designed to represent collections that can be dynamically created. NcCs|dur ||_dSi|_dS)zInitialize me.Nentities)rr r r r __init__Es  zCollection.__init__cCs |j|S)zqGet an entity that was added to me using putEntity. This method will return 'None' if it fails. )r getrnamer r r getStaticEntityL zCollection.getStaticEntitycCdS)znSubclass this to generate an entity on demand. This method should return 'None' if it fails. Nr rr$rr r r getDynamicEntitySszCollection.getDynamicEntitycCs2||}|dur |S|||}|dur|SdS)aRetrieve an entity from me. I will first attempt to retrieve an entity statically; static entities will obscure dynamic ones. If that fails, I will retrieve the entity dynamically. If I cannot retrieve an entity, I will return 'None'. N)r%r))rr$rentr r r getEntityYs  zCollection.getEntitycCs||j|<dS)zlStore a static reference on 'name' for 'entity'. Raises a KeyError if the operation fails. Nrrr$entityr r r putEntityjszCollection.putEntitycCs |j|=dS)zaRemove a static reference for 'name'. Raises a KeyError if the operation fails. Nrr#r r r delEntityqr&zCollection.delEntitycCr)z>Store an entity for 'name', based on the content of 'request'.z%s.storeEntityrrrrr(r r r storeEntityxrzCollection.storeEntitycCr)z?Remove an entity for 'name', based on the content of 'request'.z%s.removeEntityr0r(r r r removeEntity|rzCollection.removeEntitycC |jS)zlRetrieve a list of all name, entity pairs that I store references to. See getStaticEntity. )r itemsrr r r listStaticEntities zCollection.listStaticEntitiescCgS)zaA list of all name, entity that I can generate on demand. See getDynamicEntity. r rr r r listDynamicEntitieszCollection.listDynamicEntitiescCs|||S)zURetrieve a list of all name, entity pairs I contain. See getEntity. )r5r8rr r r listEntitiesszCollection.listEntitiescCr3)zkRetrieve a list of the names of entities that I store references to. See getStaticEntity. )r keysrr r r listStaticNamesr6zCollection.listStaticNamescCr7)zlRetrieve a list of the names of entities that I store references to. See getDynamicEntity. r rr r r listDynamicNamesr9zCollection.listDynamicNamescCs|S)zZRetrieve a list of all names for entities that I contain. See getEntity. )r<rr r r listNamesszCollection.listNamesN)rrrr r!r%r)r+r.r/r1r2r5r8r:r<r=r>r r r r r>s   rc@r)ConstraintViolationz2An exception raised when a constraint is violated.Nrr r r r r@r r@c@s0eZdZdZddZddZddZdd Zd S) Constrainedz?A collection that has constraints on its names and/or entities.cCr')zA method that determines whether an entity may be added to me with a given name. If the constraint is satisfied, return 1; if the constraint is not satisfied, either return 0 or raise a descriptive ConstraintViolation. r r#r r r nameConstraintzConstrained.nameConstraintcCr')zA method that determines whether an entity may be added to me. If the constraint is satisfied, return 1; if the constraint is not satisfied, either return 0 or raise a descriptive ConstraintViolation. rBr rr-r r r entityConstraintrDzConstrained.entityConstraintcCst|||dSr?)rr.r,r r r reallyPutEntityszConstrained.reallyPutEntitycCs4||r||r|||dStdtd)zfStore an entity if it meets both constraints. Otherwise raise a ConstraintViolation. zEntity constraint violated.zName constraint violated.N)rCrFrGr@r,r r r r.s  zConstrained.putEntityN)rrrr rCrFrGr.r r r r rAs  rAc@s$eZdZdZdZddZddZdS)Lockedz5A collection that can be locked from adding entities.rcCs d|_dS)NrBlockedrr r r locks z Locked.lockcCs|j Sr?rIrEr r r rFzLocked.entityConstraintN)rrrr rJrKrFr r r r rHs  rHc@s,eZdZdZeZddZddZddZdS) HomogenouszA homogenous collection of entities. I will only contain entities that are an instance of the class or type specified by my 'entityType' attribute. cCs&t||jrdSt|d|jd)NrBz of incorrect type ()) isinstance entityTyper@rEr r r rFs zHomogenous.entityConstraintcCr')NNamer rr r r getNameTypeszHomogenous.getNameTypecCs|jjSr?)rPrrr r r getEntityTyperLzHomogenous.getEntityTypeN) rrrr objectrPrFrRrSr r r r rMs  rMN) r twisted.pythonrrrr rr Exceptionr@rArHrMr r r r s m$