/snap/core24/1643/usr/lib/python3.12/__pycache__
NameSizeModeActions
abc.cpython-312.pyc80550644editdlrm
aifc.cpython-312.pyc428630644editdlrm
antigravity.cpython-312.pyc10030644editdlrm
argparse.cpython-312.pyc1016820644editdlrm
ast.cpython-312.pyc1002790644editdlrm
base64.cpython-312.pyc244080644editdlrm
bdb.cpython-312.pyc373590644editdlrm
bisect.cpython-312.pyc36410644editdlrm
bz2.cpython-312.pyc151330644editdlrm
calendar.cpython-312.pyc396210644editdlrm
cgi.cpython-312.pyc402280644editdlrm
cgitb.cpython-312.pyc173320644editdlrm
chunk.cpython-312.pyc73100644editdlrm
cmd.cpython-312.pyc186190644editdlrm
code.cpython-312.pyc130510644editdlrm
codecs.cpython-312.pyc422740644editdlrm
codeop.cpython-312.pyc69160644editdlrm
colorsys.cpython-312.pyc46420644editdlrm
compileall.cpython-312.pyc204970644editdlrm
configparser.cpython-312.pyc635820644editdlrm
contextlib.cpython-312.pyc303760644editdlrm
contextvars.cpython-312.pyc2610644editdlrm
copy.cpython-312.pyc98000644editdlrm
copyreg.cpython-312.pyc74140644editdlrm
cProfile.cpython-312.pyc85930644editdlrm
crypt.cpython-312.pyc53610644editdlrm
csv.cpython-312.pyc177880644editdlrm
dataclasses.cpython-312.pyc446780644editdlrm
datetime.cpython-312.pyc4090644editdlrm
decimal.cpython-312.pyc4060644editdlrm
difflib.cpython-312.pyc754990644editdlrm
dis.cpython-312.pyc345600644editdlrm
doctest.cpython-312.pyc1056860644editdlrm
enum.cpython-312.pyc807080644editdlrm
filecmp.cpython-312.pyc146610644editdlrm
fileinput.cpython-312.pyc202800644editdlrm
fnmatch.cpython-312.pyc64950644editdlrm
fractions.cpython-312.pyc366670644editdlrm
ftplib.cpython-312.pyc426360644editdlrm
functools.cpython-312.pyc405060644editdlrm
genericpath.cpython-312.pyc68220644editdlrm
getopt.cpython-312.pyc83630644editdlrm
getpass.cpython-312.pyc68500644editdlrm
gettext.cpython-312.pyc221510644editdlrm
glob.cpython-312.pyc98410644editdlrm
graphlib.cpython-312.pyc103270644editdlrm
gzip.cpython-312.pyc320150644editdlrm
hashlib.cpython-312.pyc80870644editdlrm
heapq.cpython-312.pyc179560644editdlrm
hmac.cpython-312.pyc106980644editdlrm
imaplib.cpython-312.pyc628890644editdlrm
imghdr.cpython-312.pyc69440644editdlrm
inspect.cpython-312.pyc1334460644editdlrm
io.cpython-312.pyc41390644editdlrm
ipaddress.cpython-312.pyc907620644editdlrm
keyword.cpython-312.pyc10410644editdlrm
linecache.cpython-312.pyc64010644editdlrm
locale.cpython-312.pyc595360644editdlrm
lzma.cpython-312.pyc158550644editdlrm
mailbox.cpython-312.pyc1116180644editdlrm
mailcap.cpython-312.pyc111550644editdlrm
mimetypes.cpython-312.pyc241850644editdlrm
modulefinder.cpython-312.pyc279440644editdlrm
netrc.cpython-312.pyc89030644editdlrm
nntplib.cpython-312.pyc449390644editdlrm
ntpath.cpython-312.pyc260330644editdlrm
nturl2path.cpython-312.pyc30340644editdlrm
numbers.cpython-312.pyc139670644editdlrm
opcode.cpython-312.pyc147160644editdlrm
operator.cpython-312.pyc173640644editdlrm
optparse.cpython-312.pyc675460644editdlrm
os.cpython-312.pyc434740644editdlrm
pathlib.cpython-312.pyc620980644editdlrm
pdb.cpython-312.pyc849190644editdlrm
pickle.cpython-312.pyc761760644editdlrm
pickletools.cpython-312.pyc811280644editdlrm
pipes.cpython-312.pyc109140644editdlrm
pkgutil.cpython-312.pyc199590644editdlrm
platform.cpython-312.pyc416000644editdlrm
plistlib.cpython-312.pyc412860644editdlrm
poplib.cpython-312.pyc184460644editdlrm
posixpath.cpython-312.pyc182360644editdlrm
pprint.cpython-312.pyc294740644editdlrm
profile.cpython-312.pyc225400644editdlrm
pstats.cpython-312.pyc379220644editdlrm
pty.cpython-312.pyc73630644editdlrm
pyclbr.cpython-312.pyc148870644editdlrm
pydoc.cpython-312.pyc1429550644editdlrm
py_compile.cpython-312.pyc100780644editdlrm
queue.cpython-312.pyc147320644editdlrm
quopri.cpython-312.pyc93230644editdlrm
random.cpython-312.pyc331530644editdlrm
reprlib.cpython-312.pyc99090644editdlrm
rlcompleter.cpython-312.pyc82820644editdlrm
runpy.cpython-312.pyc143850644editdlrm
sched.cpython-312.pyc77350644editdlrm
secrets.cpython-312.pyc25560644editdlrm
selectors.cpython-312.pyc261280644editdlrm
shelve.cpython-312.pyc129130644editdlrm
shlex.cpython-312.pyc141620644editdlrm
shutil.cpython-312.pyc681130644editdlrm
signal.cpython-312.pyc44480644editdlrm
site.cpython-312.pyc290630644editdlrm
sitecustomize.cpython-312.pyc3000644editdlrm
smtplib.cpython-312.pyc482210644editdlrm
sndhdr.cpython-312.pyc107120644editdlrm
socket.cpython-312.pyc418170644editdlrm
socketserver.cpython-312.pyc342580644editdlrm
sre_compile.cpython-312.pyc6250644editdlrm
sre_constants.cpython-312.pyc6280644editdlrm
sre_parse.cpython-312.pyc6210644editdlrm
ssl.cpython-312.pyc630110644editdlrm
stat.cpython-312.pyc52310644editdlrm
statistics.cpython-312.pyc554230644editdlrm
string.cpython-312.pyc114820644editdlrm
stringprep.cpython-312.pyc251600644editdlrm
struct.cpython-312.pyc3250644editdlrm
subprocess.cpython-312.pyc791870644editdlrm
sunau.cpython-312.pyc254230644editdlrm
symtable.cpython-312.pyc187810644editdlrm
sysconfig.cpython-312.pyc300010644editdlrm
tabnanny.cpython-312.pyc121560644editdlrm
tarfile.cpython-312.pyc1233880644editdlrm
telnetlib.cpython-312.pyc284230644editdlrm
tempfile.cpython-312.pyc473390644editdlrm
textwrap.cpython-312.pyc182930644editdlrm
this.cpython-312.pyc14080644editdlrm
threading.cpython-312.pyc653460644editdlrm
timeit.cpython-312.pyc148640644editdlrm
token.cpython-312.pyc35570644editdlrm
tokenize.cpython-312.pyc247750644editdlrm
trace.cpython-312.pyc330240644editdlrm
traceback.cpython-312.pyc515230644editdlrm
tracemalloc.cpython-312.pyc269070644editdlrm
tty.cpython-312.pyc26680644editdlrm
turtle.cpython-312.pyc1846320644editdlrm
types.cpython-312.pyc149390644editdlrm
typing.cpython-312.pyc1418600644editdlrm
uu.cpython-312.pyc78160644editdlrm
uuid.cpython-312.pyc330070644editdlrm
warnings.cpython-312.pyc237920644editdlrm
wave.cpython-312.pyc320840644editdlrm
weakref.cpython-312.pyc313480644editdlrm
webbrowser.cpython-312.pyc263530644editdlrm
xdrlib.cpython-312.pyc118410644editdlrm
zipapp.cpython-312.pyc99770644editdlrm
zipimport.cpython-312.pyc244750644editdlrm
_aix_support.cpython-312.pyc47590644editdlrm
_collections_abc.cpython-312.pyc459120644editdlrm
_compat_pickle.cpython-312.pyc72210644editdlrm
_compression.cpython-312.pyc74970644editdlrm
_distutils_system_mod.cpython-312.pyc78180644editdlrm
_markupbase.cpython-312.pyc122790644editdlrm
_osx_support.cpython-312.pyc177310644editdlrm
_pydatetime.cpython-312.pyc941930644editdlrm
_pydecimal.cpython-312.pyc2278070644editdlrm
_pyio.cpython-312.pyc1102690644editdlrm
_pylong.cpython-312.pyc99830644editdlrm
_py_abc.cpython-312.pyc70540644editdlrm
_sitebuiltins.cpython-312.pyc47600644editdlrm
_strptime.cpython-312.pyc241160644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-312.pyc586510644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-312.pyc586450644editdlrm
_threading_local.cpython-312.pyc82950644editdlrm
_weakrefset.cpython-312.pyc117510644editdlrm
__future__.cpython-312.pyc47040644editdlrm
__hello__.cpython-312.pyc8700644editdlrm
Edit: /snap/core24/1643/usr/lib/python3.12/__pycache__/selectors.cpython-312.pyc (26128B)
ЦiLtdZddlmZmZddlmZddlmZddlZddl Z ddl Z dZ dZ dZ ed gd Zd e_d ej_d ej _dej"_dej$_GddeZGddeZGddeZGddeZGddeZee dr GddeZee dr Gdd eZee d!r Gd"d#eZee d$r Gd%d&eZd'Zed$reZyedreZyed!reZyedreZyeZy)(z|Selectors module. This module allows high-level and efficient I/O multiplexing, built upon the `select` module primitives. )ABCMetaabstractmethod) namedtuple)MappingNct|tr|}n t|j}|dkrt dj ||S#ttt f$rt dj |dwxYw)zReturn a file descriptor from a file object. Parameters: fileobj -- file object or file descriptor Returns: corresponding file descriptor Raises: ValueError if the object is invalid zInvalid file object: {!r}NrzInvalid file descriptor: {}) isinstanceintfilenoAttributeError TypeError ValueErrorformat)fileobjfds /usr/lib/python3.12/selectors.py_fileobj_to_fdrs'3  ?W^^%&B Av6==bABB I  :6 ?$$*F7O5:> ? ?s A0A? SelectorKey)rreventsdatazSelectorKey(fileobj, fd, events, data) Object used to associate a file object to its backing file descriptor, selected event mask, and attached data. zFile object registered.zUnderlying file descriptor.z3Events that must be waited for on this file object.zvOptional opaque data associated to this file object. For example, this could be used to store a per-client session ID.c(eZdZdZdZdZdZdZy)_SelectorMappingz)Mapping of file objects to selector keys.c||_yN) _selector)selfselectors r__init__z_SelectorMapping.__init__?s !c@t|jjSr)lenr _fd_to_keyrs r__len__z_SelectorMapping.__len__Bs4>>,,--r c |jj|}|jj|S#t$rtdj |dwxYwN{!r} is not registered)r_fileobj_lookupr#KeyErrorr)rrrs r __getitem__z_SelectorMapping.__getitem__Es[ O//8B>>,,R0 0 O3::7CD$ N Os 36%Ac@t|jjSr)iterrr#r$s r__iter__z_SelectorMapping.__iter__LsDNN--..r N)__name__ __module__ __qualname____doc__rr%r+r.r rrr<s3".O/r rcteZdZdZed dZedZd dZed dZdZ dZ ed Z d Z d Z y) BaseSelectora-Selector abstract base class. A selector supports registering file objects to be monitored for specific I/O events. A file object is a file descriptor or any object with a `fileno()` method. An arbitrary object can be attached to the file object, which can be used for example to store context information, a callback, etc. A selector can use various implementations (select(), poll(), epoll()...) depending on the platform. The default `Selector` class uses the most efficient implementation on the current platform. Nct)a3Register a file object. Parameters: fileobj -- file object or file descriptor events -- events to monitor (bitwise mask of EVENT_READ|EVENT_WRITE) data -- attached data Returns: SelectorKey instance Raises: ValueError if events is invalid KeyError if fileobj is already registered OSError if fileobj is closed or otherwise is unacceptable to the underlying system call (if a system call is made) Note: OSError may or may not be raised NotImplementedErrorrrrrs rregisterzBaseSelector.register_s *"!r ct)ajUnregister a file object. Parameters: fileobj -- file object or file descriptor Returns: SelectorKey instance Raises: KeyError if fileobj is not registered Note: If fileobj is registered but has since been closed this does *not* raise OSError (even if the wrapped syscall does) r7)rrs r unregisterzBaseSelector.unregisterv ""!r cJ|j||j|||S)ayChange a registered file object monitored events or attached data. Parameters: fileobj -- file object or file descriptor events -- events to monitor (bitwise mask of EVENT_READ|EVENT_WRITE) data -- attached data Returns: SelectorKey instance Raises: Anything that unregister() or register() raises )r<r:r9s rmodifyzBaseSelector.modifys#  }}Wfd33r ct)aqPerform the actual selection, until some monitored file objects are ready or a timeout expires. Parameters: timeout -- if timeout > 0, this specifies the maximum wait time, in seconds if timeout <= 0, the select() call won't block, and will report the currently ready file objects if timeout is None, select() will block until a monitored file object becomes ready Returns: list of (key, events) for ready file objects `events` is a bitwise mask of EVENT_READ|EVENT_WRITE r7)rtimeouts rselectzBaseSelector.selectr=r cy)zmClose the selector. This must be called to make sure that any underlying resource is freed. Nr3r$s rclosezBaseSelector.closes r c|j}| td ||S#t$rtdj|dwxYw)zzReturn the key associated to a registered file object. Returns: SelectorKey for this file object NzSelector is closedr()get_map RuntimeErrorr*r)rrmappings rget_keyzBaseSelector.get_keys[ ,,. ?34 4 O7# # O3::7CD$ N Os $%A ct)z2Return a mapping of file objects to selector keys.r7r$s rrFzBaseSelector.get_maps "!r c|Srr3r$s r __enter__zBaseSelector.__enter__s r c$|jyr)rD)rargss r__exit__zBaseSelector.__exit__s  r r)r/r0r1r2rr:r<r?rBrDrIrFrLrOr3r rr5r5Psq "",""$4"""$  O""r r5) metaclasscDeZdZdZdZdZd dZdZd dZdZ d Z d Z y) _BaseSelectorImplzBase selector implementation.c2i|_t||_yr)r#r_mapr$s rrz_BaseSelectorImpl.__init__s$T* r c t|S#t$r?|jjD] }|j|us|j ccYSwxYw)alReturn a file descriptor from a file object. This wraps _fileobj_to_fd() to do an exhaustive search in case the object is invalid but we still have it in our map. This is used by unregister() so we can unregister an object that was previously registered even if it is closed. It is also used by _SelectorMapping. )rrr#valuesrrrrkeys rr)z!_BaseSelectorImpl._fileobj_lookupsW !'* * --/ ";;')66M "   s 4AAANcF|r|ttzzrtdj|t ||j |||}|j |jvr%tdj||j ||j|j <|S)NzInvalid events: {!r}z"{!r} (FD {}) is already registered) EVENT_READ EVENT_WRITErrrr)rr#r*rrrrrXs rr:z_BaseSelectorImpl.registersFzK'?%@@3::6BC C'4#7#7#@&$O 66T__ $?"F7CFF35 5#& r c |jj|j|}|S#t$rtdj |dwxYwr')r#popr)r*rrWs rr<z_BaseSelectorImpl.unregistersZ O//%%d&:&:7&CDC  O3::7CD$ N Os *.%Acr |j|j|}||jk7r&|j ||j |||}|S||jk7r+|j|}||j|j<|S#t$rtdj|dwxYw)Nr()r) r#r)r*rrr<r:r_replacerr\s rr?z_BaseSelectorImpl.modifys O//$"6"6w"?@C SZZ  OOG $--6C  SXX ,,D,)C&)DOOCFF #  O3::7CD$ N Os B%B6cF|jjd|_yr)r#clearrTr$s rrDz_BaseSelectorImpl.close s  r c|jSr)rTr$s rrFz_BaseSelectorImpl.get_maps yyr c@ |j|S#t$rYywxYw)zReturn the key associated to a given file descriptor. Parameters: fd -- file descriptor Returns: corresponding key, or None if not found N)r#r*)rrs r _key_from_fdz_BaseSelectorImpl._key_from_fds( ??2& &  s  r) r/r0r1r2rr)r:r<r?rDrFrer3r rrRrRs-'+ &   r rRceZdZdZfdZdfd ZfdZejdk(rddZ n e jZ ddZ xZ S) SelectSelectorzSelect-based selector.c^t|t|_t|_yr)superrset_readers_writersr __class__s rrzSelectSelector.__init__%s    r ct||||}|tzr%|jj |j |t zr%|jj |j |Sr)rir:rZrkaddrr[rl)rrrrrXrns rr:zSelectSelector.register*sWgw5 J  MM  cff % K  MM  cff % r ct||}|jj|j|j j|j|Sr)rir<rkdiscardrrlrrrXrns rr<zSelectSelector.unregister2sCg ) cff% cff% r win32cJtj||||\}}}|||zgfSr)rB)rrw_rAxs r_selectzSelectSelector._select9s,mmAq!W5GAq!a!eR< r c|dn t|d}g} |j|j|jg|\}}}t |}t |}||zD]R}d}||vr |t z}||vr |tz}|j|}|s3|j|||jzfT|S#t$r|cYSwxYwNr) maxrzrkrlInterruptedErrorrjrZr[reappendr) rrAreadyrvrwrxrrrXs rrBzSelectSelector.select?s!/$s7A ll4==$--WMGAq! F Fa% 9BFQw*$Qw+%##B'C c6CJJ#678 9   L s,B22 C?Cr) r/r0r1r2rr:r<sysplatformrzrB __classcell__rns@rrgrg"s8    ||w --r rgcXeZdZdZdZdZdZfdZdfd ZfdZ dfd Z ddZ xZ S) _PollLikeSelectorzG 388 G ,,f4,8C&)DOOCFF # - Gg[(:;<$ F G "7+sC%&C*C'*C<c|d}n |dkrd}ntj|dz}g} |jj|}|D]m\}}d}||j zr |t z}||jzr |tz}|j|}|sN|j|||jzfo|S#t$r|cYSwxYw)Nr@@) mathceilrpollr~rr[rrZrerr)rrAr fd_event_listreventrrXs rrBz_PollLikeSelector.selects ?G \Gii# .G  NN//8M' 9IBF((((+%))))*$##B'C c6CJJ#678 9   L sB88 CCr) r/r0r1r2rrrrr:r<r?rBrrs@rrrUs.FMKL. 6r rrcXeZdZdZej ZejZejZ y) PollSelectorzPoll-based selector.N) r/r0r1r2rBrrPOLLINrPOLLOUTrr3r rrrs " mm ~~ r repollcxeZdZdZej ZejZejZ dZ ddZfdZ xZ S) EpollSelectorzEpoll-based selector.c6|jjSrrr r$s rr zEpollSelector.fileno>>((* *r c|d}n#|dkrd}ntj|dzdz}tt|jd}g} |j j ||}|D]u\}}d}|tjzr |tz}|tjzr |tz}|j|}|sV|j|||jzfw|S#t$r|cYSwxYw)NrrgMbP?r)rrr}r"r#rrr~rBEPOLLINr[EPOLLOUTrZrerr) rrAmax_evrrrrrrXs rrBzEpollSelector.selectsA))GcM2T9 T__-q1FE  $ 3 3GV D + = EFNN?*k)FFOO++j(F''+LL#v ':!;< =L$   s C## C10C1cV|jjt|yrrrDrirms rrDzEpollSelector.close NN " GMOr r)r/r0r1r2rBrrrrrrr rDrrs@rrrs6# nn   + @  r rdevpollcpeZdZdZej ZejZejZ dZ fdZ xZ S)DevpollSelectorzSolaris /dev/poll selector.c6|jjSrrr$s rr zDevpollSelector.filenorr cV|jjt|yrrrms rrDzDevpollSelector.closerr )r/r0r1r2rBrrrrrrr rDrrs@rrrs0) mm ~~  +  r rkqueuecPeZdZdZfdZdZdfd ZfdZddZfdZ xZ S) KqueueSelectorzKqueue-based selector.cbt|tj|_d|_yr|)rirrBrr _max_eventsrms rrzKqueueSelector.__init__s# G  #]]_DN D r c6|jjSrrr$s rr zKqueueSelector.filenorr c:t||||} |tzrptj|j tj tj}|jj|gdd|xjdz c_ |tzrptj|j tjtj}|jj|gdd|xjdz c_ |S#t|5|xYwNrr)rir:rZrBkeventrKQ_FILTER_READ KQ_EV_ADDrcontrolrr[KQ_FILTER_WRITEr<)rrrrrXkevrns rr:zKqueueSelector.registers'"7FD9C J& --0E0E(.(8(8:CNN**C5!Q7$$)$K' --0F0F(.(8(8:CNN**C5!Q7$$)$J "7+s C2DDcxt||}|jtzrqt j |j tjtj}|xjdzc_ |jj|gdd|jtzrst j |j tjtj}|xjdzc_ |jj|gdd|S|S#t$rYwxYw#t$rY|SwxYw)Nrr)rir<rrZrBrrr KQ_EV_DELETErrrrr[r)rrrXrrns rr<zKqueueSelector.unregisters '$W-CzzJ&mmCFFF,A,A$*$7$79  A% NN**C5!Q7 zzK'mmCFFF,B,B$*$7$79  A% NN**C5!Q7J3JJs$7D;D, D)(D), D98D9c|dn t|d}|jxsd}g} |jjd||}|D]}|j }|j }d}|tjk(r |tz}|tjk(r |tz}|j|} | si|j| || jzf|S#t$r|cYSwxYwr)r}rrrr~identfilterrBrrZrr[rerr) rrArrkev_listrrflagrrXs rrBzKqueueSelector.select.s%od3w?G%%*FE >>11$H =YYzz6000j(F6111k)F''+LL#v ':!;< =L$   sC CCcV|jjt|yrrrms rrDzKqueueSelector.closeGrr r) r/r0r1r2rr r:r<rBrDrrs@rrrs)$ !  + $ . 2  r rctt|d}|y |}|dk(r|jdy|jy#t$rYywxYw)zJCheck if we can use the selector depending upon the operating system. NFrrT)getattrrBrrDr)methodr selector_objs r_can_userLsevvt,H z V    a      sAA AA)r2abcrr collectionsrcollections.abcrrrBrrZr[rrrrrrrr5rRrgrhasattrrrrrrDefaultSelectorr3r rrss("#   2(KL   8 6 R E /w/({W{|Q Qh0&0fW)Wt 66&(& 67+)+\ 69 +  68O*Od4 H$O g#O i%O f"O$Or