Files
ServerSync/lib/jeepney/__pycache__/fds.cpython-314.pyc

74 lines
7.1 KiB
Plaintext
Raw Normal View History

2026-02-19 00:55:27 +02:00
+
<00>;<3B>i<EFBFBD><00><00>^<00>^RIt^RIt^RIt^RIHt!RR]4t!RR4tRsRt R#)<08>N)<01>warnc<00><00>]tRt^tRtRtR#)<04> NoFDErrorzQRaised by :class:`FileDescriptor` methods if it was already closed/converted
<20>N)<06>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__<5F>__doc__<5F>__static_attributes__r<00><00>2/tmp/pip-target-ugtna5l2/lib/python/jeepney/fds.pyrrs
<00><00><08>r rc<00><>a<00>]tRt^ toRtRtRtRtRtRt Rt
Rt Rt Rt RtR tR
tRR ltR t]V3RlRl4tRtVtR #)<14>FileDescriptoraA file descriptor received in a D-Bus message
This wrapper helps ensure that the file descriptor is closed exactly once.
If you don't explicitly convert or close the FileDescriptor object, it will
close its file descriptor when it goes out of scope, and emit a
ResourceWarning.
c<08><00>WnR#<00>N<><01>_fd<66><02>self<6C>fds&&r<00>__init__<5F>FileDescriptor.__init__s<00><00><15>r c<08><><00>VPpVPVP8XdRpMVPVP8XdRpRV R2#)<04>closed<65> convertedz<FileDescriptor (z)>)r<00>_CLOSED<45>
_CONVERTED<EFBFBD>r<00>details& r<00>__repr__<5F>FileDescriptor.__repr__sD<00><00><15><18><18><06> <0F>8<EFBFBD>8<EFBFBD>t<EFBFBD>|<7C>|<7C> #<23><1D>F<EFBFBD> <11>X<EFBFBD>X<EFBFBD><14><1F><1F> (<28> <20>F<EFBFBD>"<22>6<EFBFBD>(<28>"<22>-<2D>-r c <0C><><00>VPVP8XdR#VPVP8Xd \R4hVPVPuVnp\P
!V4R#)z<>Close the file descriptor
This can safely be called multiple times, but will raise RuntimeError
if called after converting it with one of the ``to_*`` methods.
This object can also be used in a ``with`` block, to close it on
leaving the block.
z.Can't close FileDescriptor after converting itN)rrrr<00>os<6F>closers& rr%<00>FileDescriptor.close$sS<00><00> <10>8<EFBFBD>8<EFBFBD>t<EFBFBD>|<7C>|<7C> #<23> <10> <11>X<EFBFBD>X<EFBFBD><14><1F><1F> (<28><1B>L<>M<> M<><1F><<3C><<3C><14><18><18>L<EFBFBD>D<EFBFBD>H<EFBFBD>b<EFBFBD> <0E>H<EFBFBD>H<EFBFBD>R<EFBFBD>Lr c<08><00>V#rr<00>rs&r<00> __enter__<5F>FileDescriptor.__enter__5s<00><00><13> r c<08>&<00>VP4R#r)r%)r<00>exc_type<70>exc_val<61>exc_tbs&&&&r<00>__exit__<5F>FileDescriptor.__exit__8s <00><00> <0C>
<EFBFBD>
<EFBFBD> r c<08><><00>VP^8<>d4\RVP R2\^VR7VP4R#R#)rzFileDescriptor (z") was neither closed nor converted)<02>
stacklevel<EFBFBD>sourceN)rr<00>ResourceWarningr%r(s&r<00>__del__<5F>FileDescriptor.__del__;s=<00><00> <0F>8<EFBFBD>8<EFBFBD>q<EFBFBD>=<3D> <10>"<22>4<EFBFBD>8<EFBFBD>8<EFBFBD>*<2A>,N<>O<><1F>A<EFBFBD>d<EFBFBD> <0E> <11>J<EFBFBD>J<EFBFBD>L<EFBFBD> r c<08><><00>VP^8d.VPVP8XdRMRp\RV 24hR#)rrrz"FileDescriptor object was already N)rrrrs& r<00>_check<63>FileDescriptor._checkCs;<00><00> <0F>8<EFBFBD>8<EFBFBD>a<EFBFBD><<3C>!%<25><18><18>T<EFBFBD>\<5C>\<5C>!9<>X<EFBFBD>{<7B>F<EFBFBD><1B>@<40><16><08>I<>J<> J<> r c <0C>:<00>VP4VP#)z<>Get the integer file descriptor
This does not change the state of the :class:`FileDescriptor` object,
unlike the ``to_*`` methods.
)r8rr(s&r<00>fileno<6E>FileDescriptor.filenoHs<00><00> <0A> <0B> <0B> <0A><13>x<EFBFBD>x<EFBFBD>r c <0C>b<00>VP4VPVPuVnpV#)z<>Convert to the low-level integer file descriptor::
raw_fd = fd.to_raw_fd()
os.write(raw_fd, b'xyz')
os.close(raw_fd)
The :class:`FileDescriptor` can't be used after calling this. The caller
is responsible for closing the file descriptor.
)r8rrrs& r<00> to_raw_fd<66>FileDescriptor.to_raw_fdQs'<00><00> <0A> <0B> <0B> <0A><1B><EFBFBD><EFBFBD><04><08><08> <0C><04><08>"<22><11> r Nc  <0C>z<00>VP4\VPWW4VR7pVPVnV#)aConvert to a Python file object::
with fd.to_file('w') as f:
f.write('xyz')
The arguments are the same as for the builtin :func:`open` function.
The :class:`FileDescriptor` can't be used after calling this. Closing
the file object will also close the file descriptor.
)<04> buffering<6E>encoding<6E>errors<72>newline)r8<00>openrr)r<00>moderArBrCrD<00>fs&&&&&& r<00>to_file<6C>FileDescriptor.to_file_s7<00><00> <0A> <0B> <0B> <0A> <10> <10>H<EFBFBD>H<EFBFBD>d<EFBFBD><1D>g<EFBFBD>
<EFBFBD><01><18>?<3F>?<3F><04><08><10>r c <0C>z<00>^RIHpVP4V!VPR7pVPVnV#)aConvert to a socket object
This returns a standard library :func:`socket.socket` object::
with fd.to_socket() as sock:
b = sock.sendall(b'xyz')
The wrapper object can't be used after calling this. Closing the socket
object will also close the file descriptor.
)<01>socket)r;)rKr8rr)rrK<00>ss& r<00> to_socket<65>FileDescriptor.to_socketrs.<00><00> "<22> <0C> <0B> <0B> <0A> <12>$<24>(<28>(<28> #<23><01><17>?<3F>?<3F><04><08><10>r c<00> <<01>V^8<>dQhRR./#)<03><00>returnrr)<02>format<61> __classdict__s"<22>r<00> __annotate__<5F>FileDescriptor.__annotate__<5F>s<00><><00>
%<25>
%<25>'7<>&8<>
%r c  <0C>V<00>\P!R4pVFrwr4pV\P8XgKV\P8XgK4VP VR\ V4\ V4VP ,,
4Kt VUu.uF
q`!V4NK up#uupi)z<>Make a list of FileDescriptor from received file descriptors
ancdata is a list of ancillary data tuples as returned by socket.recvmsg()
<EFBFBD>iN)<07>arrayrK<00>
SOL_SOCKET<EFBFBD>
SCM_RIGHTS<EFBFBD> frombytes<65>len<65>itemsize)<07>cls<6C>ancdata<74>fds<64>
cmsg_level<EFBFBD> cmsg_type<70>datarWs&& r<00> from_ancdata<74>FileDescriptor.from_ancdata<74>s<><00><00> <14>k<EFBFBD>k<EFBFBD>#<23><1E><03>+2<> '<27>J<EFBFBD>4<EFBFBD><19>V<EFBFBD>.<2E>.<2E>.<2E>9<EFBFBD><06>@Q<>@Q<>3Q<33><13> <0A> <0A>d<EFBFBD>#J<>C<EFBFBD><04>I<EFBFBD><13>T<EFBFBD><19>S<EFBFBD>\<5C>\<5C>1I<31>$J<>K<>L<>,3<>!$<24>$<24><03>1<EFBFBD><03>A<EFBFBD><06><03>$<24>$<24><>$s<00>B&r<00><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)rfNNN)rrr r
r <00> __slots__rrrr!r%r)r/r5r8r;r>rHrM<00> classmethodrdr <00>__classdictcell__)rSs@rrr sg<00><><00><00><08><19>I<EFBFBD><10>G<EFBFBD><13>J<EFBFBD><16>.<2E><19>"<14><15><19>K<01>
<18> <12><11>&<11>$<11>
%<25><11>
%r rc<00><><00>\f?Rp\P!R4Pp\P!W,4s\#)N<>rW)<05>_fds_buf_size_cacherXr]rK<00>
CMSG_SPACE)<02>maxfds<64>fd_sizes r<00> fds_buf_sizerq<00>s=<00><00> <1B>"<22><14><06><17>+<2B>+<2B>c<EFBFBD>"<22>+<2B>+<2B><07>$<24>/<2F>/<2F><06>0@<40>A<><1B> <1E>r )
rXr$rK<00>warningsr<00> RuntimeErrorrrrmrqrr r<00><module>rts7<00><01> <0C> <09> <0A><19> <09> <0C> <09> B%<25>B%<25>J<1B><13>
r