Files
ServerSync/lib/jeepney/io/__pycache__/blocking.cpython-314.pyc

118 lines
19 KiB
Plaintext
Raw Normal View History

2026-02-19 00:55:27 +02:00
+
<00>;<3B>i<EFBFBD>.<00><00><><00>Rt^RIt^RIHt^RIHt^RIt^RIHt^RI t ^RI
H t H t ^RI t ^RIt^RIHt^RIHtHtHtHt^RIHtHt^R IHt^R
IHtHt^R IHtH t ^R I!H"t"^R I#H$t$H%t%H&t&.ROt'!RR4t(Rt)Rt*!RR4t+!RR]+4t,!RR]4t-Rt.R RRllt/R!RRllt0]1R8Xd]0!4t2]3!R]2Ph4R#R#)"z'Synchronous IO wrappers around jeepney
N)<01>deque)<01>
ECONNRESET)<01>count)<02>DefaultSelector<6F>
EVENT_READ)<01>Optional)<04>Parser<65>Message<67> MessageType<70> HeaderFields)<02> Authenticator<6F>BEGIN)<01>get_bus)<02>FileDescriptor<6F> fds_buf_size)<02> ProxyBase<73>
unwrap_msg)<01> message_bus)<03>MessageFilters<72> FilterHandle<6C>check_replyable<6C>DBusConnection<6F>Proxyc<00>>a<00>]tRt^toRtRtRtRtRtRt Vt
R#)<08>_Futurec<08><00>RVnR#<00>N<><01>_result<6C><01>selfs&<26>:/tmp/pip-target-ugtna5l2/lib/python/jeepney/io/blocking.py<70>__init__<5F>_Future.__init__s <00><00><1B><04> <0C>c<08>,<00>\VP4#r)<02>boolrrs&r!<00>done<6E> _Future.done!s<00><00><13>D<EFBFBD>L<EFBFBD>L<EFBFBD>!<21>!r$c<08><00>RV3VnR#)FNr)r <00> exceptions&&r!<00> set_exception<6F>_Future.set_exception$s<00><00><1D>y<EFBFBD>)<29><04> r$c<08><00>RV3VnR#)TNr)r <00>results&&r!<00>
set_result<EFBFBD>_Future.set_result's <00><00><1C>f<EFBFBD>~<7E><04> r$c<08>6<00>VPwrV'dV#Vhrr)r <00>success<73>values& r!r.<00>_Future.result*s<00><00><1D><1C><1C><0E><07> <12><18>L<EFBFBD><13> r$rN) <0B>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__r"r'r+r/r.<00>__static_attributes__<5F>__classdictcell__<5F><01> __classdict__s@r!rrs#<00><><00><00><1C>"<22>*<2A>&<26><14>r$rc<00>F<00>Ve\P!4V,#R#r)<02>time<6D> monotonic<69><01>timeouts&r!<00>timeout_to_deadlinerB1s<00><00><0E><1A><13>~<7E>~<7E><1F>'<27>)<29>)<29> r$c<00>Z<00>Ve'\V\P!4,
R4#R#)Ng)<03>maxr>r?)<01>deadlines&r!<00>deadline_to_timeoutrF6s$<00><00><0F><1B><12>8<EFBFBD>d<EFBFBD>n<EFBFBD>n<EFBFBD>.<2E>.<2E><02>3<>3<> r$c<00>za<00>]tRt^<toRtRV3RlRlltRtRtV3RlRltRt R t
RR lt R t R t RtVtR
#)<11>DBusConnectionBasez8Connection machinery shared by this module and threadingc<00>4<<01>V^8<>dQhRS[P/#<00><02><00>sock<63><01>socket)<02>formatr<s"<22>r!<00> __annotate__<5F>DBusConnectionBase.__annotate__>s<00><><00> <20> <20>V<EFBFBD>]<5D>]<5D> r$c<08><><00>WnW n\4Vn\ ^R7Vn\ 4VnVPPV\4Vn
RVn R#)<03>)<01>startN) rL<00>
enable_fdsr<00>parserr<00>outgoing_serialr<00>selector<6F>registerr<00>
select_key<EFBFBD> unique_name)r rLrUs&&&r!r"<00>DBusConnectionBase.__init__>sK<00><00><18> <09>$<24><0F><1C>h<EFBFBD><04> <0B>$<24>1<EFBFBD>~<7E><04><1C>'<27>)<29><04> <0A><1E>-<2D>-<2D>0<>0<><14>z<EFBFBD>B<><04><0F><1F><04>r$c<08><00>V#r<00>rs&r!<00> __enter__<5F>DBusConnectionBase.__enter__Gs<00><00><13> r$c<08>&<00>VP4R#<00>F)<01>close)r <00>exc_type<70>exc_val<61>exc_tbs&&&&r!<00>__exit__<5F>DBusConnectionBase.__exit__Js<00><00> <0C>
<EFBFBD>
<EFBFBD> <0C>r$c<00>P<<01>V^8<>dQhRS[RS[S[S[P,3/#)rK<00>message<67>return)r <00>bytesr<00>array)rOr<s"<22>r!rPrQNs)<00><><00><19><19>'<27><19>u<EFBFBD>h<EFBFBD>u<EFBFBD>{<7B>{<7B>>S<>6T<36>r$c<08><><00>Vf\VP4pVP'd\P!R4MRpVP W#R7pWC3#)N<>i)<02>serial<61>fds)<05>nextrWrUrm<00> serialise)r rjrprq<00>datas&&& r!<00>
_serialise<EFBFBD>DBusConnectionBase._serialiseNsJ<00><00> <11>><3E><19>$<24>.<2E>.<2E>/<2F>F<EFBFBD>"&<26>/<2F>/<2F>/<2F>e<EFBFBD>k<EFBFBD>k<EFBFBD>#<23><1E>t<EFBFBD><03><16> <20> <20><06> <20>8<><04><13>y<EFBFBD>r$c<08><><00>VPPV.\P\PV3.4pV\ V48d VPP WR4R#R#r)rL<00>sendmsgrN<00>
SOL_SOCKET<EFBFBD>
SCM_RIGHTS<EFBFBD>len<65>sendall)r rtrq<00>
bytes_sents&&& r!<00>_send_with_fds<64>!DBusConnectionBase._send_with_fdsUs]<00><00><19>Y<EFBFBD>Y<EFBFBD>&<26>&<26> <11>F<EFBFBD>f<EFBFBD>'<27>'<27><16>):<3A>):<3A>C<EFBFBD>@<40>A<>
<EFBFBD>
<EFBFBD>
<16><03>D<EFBFBD> <09> !<21> <10>I<EFBFBD>I<EFBFBD> <1D> <1D>d<EFBFBD>;<3B>/<2F> 0<> "r$c<08><><00>VPP4pVeV#VP\V4R7wr4VPP W4R7K\)Tr@)rq)rV<00>get_next_message<67>_read_some_datarF<00>add_data)r rE<00>msg<73>brqs&& r!<00>_receive<76>DBusConnectionBase._receive^sQ<00><00><12><16>+<2B>+<2B>.<2E>.<2E>0<>C<EFBFBD><12><EFBFBD><1A>
<EFBFBD><19>)<29>)<29>2E<32>h<EFBFBD>2O<32>)<29>P<>F<EFBFBD>A<EFBFBD> <10>K<EFBFBD>K<EFBFBD> <20> <20><11> <20> ,r$Nc<08><00>VPPV4Fawr#W P8XgKVP'dVP 4u#\ VP PR44.3u# \h)i) rX<00>selectrZrU<00>_read_with_fds<64> unwrap_readrL<00>recv<63> TimeoutError)r rA<00>key<65>evs&& r!r<><00>"DBusConnectionBase._read_some_datagsd<00><00><1B>}<7D>}<7D>+<2B>+<2B>G<EFBFBD>4<>G<EFBFBD>C<EFBFBD><12>o<EFBFBD>o<EFBFBD>%<25><17>?<3F>?<3F>?<3F><1F>.<2E>.<2E>0<>0<>&<26>t<EFBFBD>y<EFBFBD>y<EFBFBD>~<7E>~<7E>d<EFBFBD>';<3B><<3C>b<EFBFBD>@<40>@<40> 5<><1B>r$c<08>8<00>VPP4pVPPV\ 44wr#rEV\ \ R^4,'dVP4\R4h\V4\P!V43#)<02>
MSG_CTRUNCz&Unable to receive all file descriptors) rV<00> bytes_desiredrL<00>recvmsgr<00>getattrrNrc<00> RuntimeErrorr<72>r<00> from_ancdata)r <00>nbytesrt<00>ancdata<74>flags<67>_s& r!r<><00>!DBusConnectionBase._read_with_fdsqsu<00><00><15><1B><1B>*<2A>*<2A>,<2C><06>"&<26>)<29>)<29>"3<>"3<>F<EFBFBD>L<EFBFBD>N<EFBFBD>"K<><1F><04>u<EFBFBD> <10>7<EFBFBD>6<EFBFBD><<3C><11>3<> 3<> 3<> <10>J<EFBFBD>J<EFBFBD>L<EFBFBD><1E>G<>H<> H<><1A>4<EFBFBD> <20>.<2E>"=<3D>"=<3D>g<EFBFBD>"F<>F<>Fr$c <0C>n<00>VPP4VPP4R#)zClose the connectionN)rXrcrLrs&r!rc<00>DBusConnectionBase.closeys <00><00> <0C> <0A> <0A><1B><1B><1D> <0C> <09> <09><0F><0F>r$)rUrWrVrZrXrLr[rbr)r5r6r7r8<00>__doc__r"r_rgrur~r<>r<>r<>rcr9r:r;s@r!rHrH<sE<00><><00><00>B<> <20> <20><14><15><19><19>1<>-<2D><1B>G<01><1A>r$rHc<00><>aa<01>]tRt^toRV3RlV3RllltRV3RlRllt]tRR/V3RlRlltRR/R ltRR/R
lt R RR ^/V3R lRllt
RR/V3RlRllt Rt Vt V;t#)rc<00>4<<01>V^8<>dQhRS[P/#rJrM)rOr<s"<22>r!rP<00>DBusConnection.__annotate__<5F>s<00><><00> *<2A> *<2A>V<EFBFBD>]<5D>]<5D> *r$c<08><><<01>\SV`W4\4Vn\ \
V4VnVP P4pV^,VnR#)<02>N) <09>superr"r<00>_filtersrr<00> bus_proxy<78>Hellor[)r rLrU<00> hello_reply<6C> __class__s&&& <20>r!r"<00>DBusConnection.__init__<5F>sJ<00><><00> <0A><07><18><14>*<2A>'<27>(<28><04> <0A><1F>{<7B>D<EFBFBD>1<><04><0E><1A>n<EFBFBD>n<EFBFBD>*<2A>*<2A>,<2C> <0B>&<26>q<EFBFBD>><3E><04>r$Nc<00> <<01>V^8<>dQhRS[/#)rKrj<00>r )rOr<s"<22>r!rPr<><00>s<00><><00>$<24>$<24>G<EFBFBD>$r$c <0C><><00>VPW4wr4V'dVPW44R#VPPV4R#)z.Serialise and send a :class:`~.Message` objectN)rur~rLr|)r rjrprtrqs&&& r!<00>send<6E>DBusConnection.send<6E>s5<00><00><18>O<EFBFBD>O<EFBFBD>G<EFBFBD>4<> <09><04> <0E> <10> <1F> <1F><04> *<2A> <10>I<EFBFBD>I<EFBFBD> <1D> <1D>d<EFBFBD> #r$rAc<00> <<01>V^8<>dQhRS[/#<00>rKrkr<>)rOr<s"<22>r!rPr<><00>s<00><><00>;<3B>;<3B>'<27>;r$c <0C>6<00>VP\V44#)a Return the next available message from the connection
If the data is ready, this will return immediately, even if timeout<=0.
Otherwise, it will wait for up to timeout seconds, or indefinitely if
timeout is None. If no message comes in time, it raises TimeoutError.
)r<>rB)r rAs&$r!<00>receive<76>DBusConnection.receive<76>s<00><00><14>}<7D>}<7D>0<><17>9<>:<3A>:r$c <0C><><00>VPVR7pVPPV4FpVPP V4K R#)zLReceive one message and apply filters
See :meth:`filter`. Returns nothing.
r@N)r<>r<><00>matches<65>queue<75>append)r rAr<><00>filters&$ r!<00> recv_messages<65>DBusConnection.recv_messages<65>s?<00><00>
<13>l<EFBFBD>l<EFBFBD>7<EFBFBD>l<EFBFBD>+<2B><03><1A>m<EFBFBD>m<EFBFBD>+<2B>+<2B>C<EFBFBD>0<>F<EFBFBD> <12>L<EFBFBD>L<EFBFBD> <1F> <1F><03> $<24>1r$c <0C><><00>\V4\V4p\VP4pVP WR7VP \ V4R7pVPPP\PR4pWd8XdV#VPPV4FpVPPV4K K<>)z<>Send a message, wait for the reply and return it
Filters are applied to other messages received before the reply -
see :meth:`add_filter`.
)rpr@<00><><EFBFBD><EFBFBD><EFBFBD>)rrBrrrW<00> send_messager<65>rF<00>header<65>fields<64>getr <00> reply_serialr<6C>r<>r<>r<>)r rjrArErp<00>msg_in<69>reply_tor<6F>s&&$ r!<00>send_and_get_reply<6C>!DBusConnection.send_and_get_reply<6C>s<><00><00> <18><07> <20>&<26>w<EFBFBD>/<2F><08><15>d<EFBFBD>*<2A>*<2A>+<2B><06> <0C><19><19>'<27><19>1<><12><19>\<5C>\<5C>*=<3D>h<EFBFBD>*G<>\<5C>H<>F<EFBFBD><1D>}<7D>}<7D>+<2B>+<2B>/<2F>/<2F> <0C>0I<30>0I<30>2<EFBFBD>N<>H<EFBFBD><17>!<21><1D> <0A><1F>-<2D>-<2D>/<2F>/<2F><06>7<><06><16> <0C> <0C>#<23>#<23>F<EFBFBD>+<2B>8r$r<><00>bufsizec<00>0<<01>V^8<>dQhRS[S[,/#)rKr<>)rr)rOr<s"<22>r!rPr<><00>s<00><><00>8<>8<>X<EFBFBD>e<EFBFBD>_<EFBFBD>8r$c <0C>N<00>Vf \VR7p\VPW4#)a<>Create a filter for incoming messages
Usage::
with conn.filter(rule) as matches:
# matches is a deque containing matched messages
matching_msg = conn.recv_until_filtered(matches)
:param jeepney.MatchRule rule: Catch messages matching this rule
:param collections.deque queue: Matched messages will be added to this
:param int bufsize: If no deque is passed in, create one with this size
)<01>maxlen)rrr<>)r <00>ruler<65>r<>s&&$$r!r<><00>DBusConnection.filter<65>s$<00><00> <11>=<3D><19><17>)<29>E<EFBFBD><1B>D<EFBFBD>M<EFBFBD>M<EFBFBD>4<EFBFBD>7<>7r$c<00> <<01>V^8<>dQhRS[/#r<>r<>)rOr<s"<22>r!rPr<><00>s<00><><00><1F><1F>W<EFBFBD>r$c <0C><><00>\V4p\V4^8XdVP\V4R7K-VP 4#)a
Process incoming messages until one is filtered into queue
Pops the message from queue and returns it, or raises TimeoutError if
the optional timeout expires. Without a timeout, this is equivalent to::
while len(queue) == 0:
conn.recv_messages()
return queue.popleft()
In the other I/O modules, there is no need for this, because messages
are placed in queues by a separate task.
:param collections.deque queue: A deque connected by :meth:`filter`
:param float timeout: Maximum time to wait in seconds
r@)rBr{r<>rF<00>popleft)r r<>rArEs&&$ r!<00>recv_until_filtered<65>"DBusConnection.recv_until_filtered<65>s<<00><00> '<27>w<EFBFBD>/<2F><08><11>%<25>j<EFBFBD>A<EFBFBD>o<EFBFBD> <10> <1E> <1E>':<3A>8<EFBFBD>'D<> <1E> E<><14>}<7D>}<7D><EFBFBD>r$)r<>r<>r[rbr)r5r6r7r8r"r<>r<>r<>r<>r<>r<>r<>r9r:<00> __classcell__<5F>r<>r<s@@r!rrsw<00><><00><00> *<2A> *<2A>$<24>$<24><18>L<EFBFBD>;<3B><14>;<3B>;<3B>%<25>t<EFBFBD>%<25>,<2C>T<EFBFBD>,<2C>*8<>d<EFBFBD>8<>A<EFBFBD>8<>8<>"<1F>D<EFBFBD><1F><1F>r$c<00>Jaa<01>]tRt^<5E>toRtRR/V3RlltRtRtRtVt V;t
#)ra6A blocking proxy for calling D-Bus methods
You can call methods on the proxy object, such as ``bus_proxy.Hello()``
to make a method call over D-Bus and wait for a reply. It will either
return a tuple of returned data, or raise :exc:`.DBusErrorResponse`.
The methods available are defined by the message generator you wrap.
You can set a time limit on a call by passing ``_timeout=`` in the method
call, or set a default when creating the proxy. The ``_timeout`` argument
is not passed to the message generator.
All timeouts are in seconds, and :exc:`TimeoutErrror` is raised if it
expires before a reply arrives.
:param msggen: A message generator object
:param ~blocking.DBusConnection connection: Connection to send and receive messages
:param float timeout: Default seconds to wait for a reply, or None for no limit
rANc<08>><<01>\SV`V4W nW0nR#r)r<>r"<00> _connection<6F>_timeout)r <00>msggen<65>
connectionrAr<>s&&&$<24>r!r"<00>Proxy.__init__<5F>s<00><><00> <0A><07><18><16> <20>%<25><18><1F> r$c<08>~<00>VPfRMRVP 2pRVP RVP V R2#)N<>z
, timeout=zProxy(z, <20>))r<><00>_msggenr<6E>)r <00>extras& r!<00>__repr__<5F>Proxy.__repr__<5F>sA<00><00><1B>}<7D>}<7D>,<2C><02>Z<EFBFBD><04> <0A> <0A><EFBFBD>3O<33><05><17><04> <0C> <0C>~<7E>R<EFBFBD><04>(8<>(8<>'9<>%<25><17><01>B<>Br$c<08>Jaa<01>\P!S4VV3Rl4pV#)c<00><><<02>VPRSP4pS!V/VBpVPP\P
JgQh\ SPPW2R74#)r<>r@) <09>popr<70>r<><00> message_typer
<00> method_callrr<>r<>)<06>args<67>kwargsrAr<><00>make_msgr s*, <20><>r!<00>inner<65>!Proxy._method_call.<locals>.inner<65>sm<00><><00><1C>j<EFBFBD>j<EFBFBD><1A>T<EFBFBD>]<5D>]<5D>;<3B>G<EFBFBD><1A>D<EFBFBD>+<2B>F<EFBFBD>+<2B>C<EFBFBD><16>:<3A>:<3A>*<2A>*<2A>k<EFBFBD>.E<>.E<>E<> E<>E<><1D>d<EFBFBD>.<2E>.<2E>A<>A<><13>B<01><0E><0F> r$)<02> functools<6C>wraps)r r<>r<>sff r!<00> _method_call<6C>Proxy._method_call<6C>s%<00><><00> <12><1F><1F><18> "<22> <0F>
#<23> <0F><15> r$)r<>r<>) r5r6r7r8r<>r"r<>r<>r9r:r<>r<>s@@r!rr<00>s&<00><><00><00><08>" <20>d<EFBFBD> <20>
C<01>
<15>
r$c<04>f<00>V'g)\\\P!\44hV#)z<>Raise ConnectionResetError from an empty read.
Sometimes the socket raises an error itself, sometimes it gives no data.
I haven't worked out when it behaves each way.
)<04>ConnectionResetErrorr<00>os<6F>strerror)r<>s&r!r<>r<> s"<00><00> <0A>"<22>:<3A>r<EFBFBD>{<7B>{<7B>:<3A>/F<>G<>G<> <0C>Hr$c<00>8<00>V^8<>dQhR\P/#r<>rM)rOs"r!rPrPs<00><00>!<10>!<10><06> <0A> <0A>!r$c <04><>aa<08>\P!\PR7o\V4oVV3RlpV!SPV4\ VRR7p\ \R4'd>SP R.\P\P\R43.4MSPR4VFApV!SPV4VP\V!SPR444KC V!SP\4SP'R 4S# \P d&pSP#4\%R T R
24ThR p?iSP#4h;i) z=Create a socket and authenticate ready to send D-Bus messages)<01>familyc<00>D<<02>SP\S44V!V!#r)<02>
settimeoutrF)<04>methr<68>rErLs&*<2A><>r!<00>with_sock_deadline<6E>'prep_socket.<locals>.with_sock_deadlines<00><><00> <0C><0F><0F>+<2B>H<EFBFBD>5<>6<><13>T<EFBFBD>{<7B>r$F)rU<00> inc_null_byte<74> SCM_CREDS<44>iizDid not authenticate in z secondsN)rN<00>AF_UNIXrB<00>connectr <00>hasattrrxryr<>rlr<>r|<00>feedr<64>r<>r rArcr<>r<>) <09>addrrUrAr<><00>authr<68>req_data<74>erErLs &&& @@r!<00> prep_socketrs%<00><><00> <11>=<3D>=<3D><06><0E><0E> /<2F>D<EFBFBD>
#<23>7<EFBFBD>+<2B>H<EFBFBD><1B><0E><1A>4<EFBFBD><<3C><<3C><14>.<2E><1D><1A>5<EFBFBD>I<><05> <12>6<EFBFBD>;<3B> '<27> '<27> <10>L<EFBFBD>L<EFBFBD>%<25><17>F<EFBFBD>$5<>$5<>v<EFBFBD>7G<37>7G<37><15>s<EFBFBD><1A>#T<>"U<> V<> <11>I<EFBFBD>I<EFBFBD>e<EFBFBD> <1C><1D>H<EFBFBD> <1E>t<EFBFBD>|<7C>|<7C>X<EFBFBD> 6<> <11>J<EFBFBD>J<EFBFBD>{<7B>#5<>d<EFBFBD>i<EFBFBD>i<EFBFBD><14>#F<>G<> H<><1E> <1B>4<EFBFBD><<3C><<3C><15>/<2F> <09>O<EFBFBD>O<EFBFBD>D<EFBFBD><19> <0F>K<EFBFBD><4B> <12>><3E>><3E>P<01> <0C>
<EFBFBD>
<EFBFBD> <0C><1A>5<>g<EFBFBD>Y<EFBFBD>h<EFBFBD>G<>H<>a<EFBFBD>O<><4F><0E> <0C>
<EFBFBD>
<EFBFBD> <0C> <0A>s<00>C"D0<00>0E;<03> E%<03>%E;c<00>$<00>V^8<>dQhR\/#r<>)r)rOs"r!rPrP:s<00><00><10><10><13>r$c<04>L<00>\V4p\W1VR7p\WA4pV#)a<>Connect to a D-Bus message bus
Pass ``enable_fds=True`` to allow sending & receiving file descriptors.
An error will be raised if the bus does not allow this. For simplicity,
it's advisable to leave this disabled unless you need it.
D-Bus has an authentication step before sending or receiving messages.
This takes < 1 ms in normal operation, but there is a timeout so that client
code won't get stuck if the server doesn't reply. *auth_timeout* configures
this timeout in seconds.
r@)rrr)<06>busrU<00> auth_timeout<75>bus_addrrL<00>conns&&& r!<00>open_dbus_connectionr:s(<00><00><17>s<EFBFBD>|<7C>H<EFBFBD> <16>x<EFBFBD>\<5C> B<>D<EFBFBD> <19>$<24> +<2B>D<EFBFBD> <0F>Kr$<00>__main__z Unique name:)rrr)Fg@)<03>SESSIONFg<00>?)5r<35>rm<00> collectionsr<00>errnorr<><00> itertoolsrr<><00> selectorsrrrNr><00>typingr<00>jeepneyrr r
r <00> jeepney.authr r <00> jeepney.busr<00> jeepney.fdsrr<00>jeepney.wrappersrr<00>jeepney.bus_messagesr<00>commonrrr<00>__all__rrBrFrHrrr<>rrr5r<00>printr[r^r$r!<00><module>r s<><00><01><04> <0C><1D><1C><10><1B> <09>1<> <0A> <0B><1B>><3E>><3E>-<2D><1F>4<>2<>,<2C>A<>A<> <02><07><14><14>(<10>
<10> @<1A>@<1A>Fa<1F>'<27>a<1F>H%<15>I<EFBFBD>%<15>P <0A>!<10>H<10>* <0C>z<EFBFBD><19> <1F> !<21>D<EFBFBD> <09>.<2E>$<24>*<2A>*<2A>+<2B>r$