Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
§

hµµhÀãój—ddlZddlZddlZddlmZGd„de¦«ZGd„d¦«Zdad„Z	dS)éN)Úwarncó—eZdZdZdS)Ú	NoFDErrorzQRaised by :class:`FileDescriptor` methods if it was already closed/converted
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__©óú6/usr/local/lib/python3.11/site-packages/jeepney/fds.pyrrs€€€€€ððà€Drrcó€—eZdZdZdZdZdZd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zdd„Zd„Zeddgfd„¦«ZdS)ÚFileDescriptora+A 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.
    ©Ú_fdéÿÿÿÿéþÿÿÿcó—||_dS©Nr©ÚselfÚfds  rÚ__init__zFileDescriptor.__init__s
€ØˆŒˆˆrcóf—|j}|j|jkrd}n|j|jkrd}d|›dS)NÚclosedÚ	convertedz<FileDescriptor (z)>)rÚ_CLOSEDÚ
_CONVERTED©rÚdetails  rÚ__repr__zFileDescriptor.__repr__sD€Ø”ˆØŒ8t”|Ò#Ð#؈FˆFØ
ŒX˜œÒ
(Ð
(Ø ˆFØ- 6Ð-Ð-Ð-Ð-rcó¸—|j|jkrdS|j|jkrtd¦«‚|j|jc|_}t	j|¦«dS)aClose 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ÚosÚclosers  rr#zFileDescriptor.close$sX€ðŒ8t”|Ò#Ð#ØˆDØ
ŒX˜œÒ
(Ð
(ÝÐLÑMÔMÐMàœ<¨¬ˆLˆDŒHbÝŒHR‰LŒLˆLˆLˆLrcó—|Srr
©rs rÚ	__enter__zFileDescriptor.__enter__5s€Øˆrcó.—| ¦«dSr)r#)rÚexc_typeÚexc_valÚexc_tbs    rÚ__exit__zFileDescriptor.__exit__8s€Ø
Š
‰ŒˆˆˆrcóŠ—|jdkr7td|j›dtd|¬¦«| ¦«dSdS)NrzFileDescriptor (z") was neither closed nor convertedé)Ú
stacklevelÚsource)rrÚResourceWarningr#r%s rÚ__del__zFileDescriptor.__del__;sU€ØŒ8qŠ=ˆ=ÝØO 4¤8ÐOÐOÐOݨA°dð
ñ
ô
ð
ð
JŠJ‰LŒLˆLˆLˆLðˆ=rcóh—|jdkr&|j|jkrdnd}td|›¦«‚dS)Nrrrz"FileDescriptor object was already )rrrrs  rÚ_checkzFileDescriptor._checkCsB€ØŒ8aŠ<ˆ<Ø!%¤¨T¬\Ò!9Ð!9XX¸{ˆFÝÐIÀÐIÐIÑJÔJÐJðˆ<rcó8—| ¦«|jS)zœGet the integer file descriptor

        This does not change the state of the :class:`FileDescriptor` object,
        unlike the ``to_*`` methods.
        )r3rr%s rÚfilenozFileDescriptor.filenoHs€ð	
Š‰
Œ
ˆ
ØŒxˆrcóV—| ¦«|j|jc|_}|S)a,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.
        )r3rrrs  rÚ	to_raw_fdzFileDescriptor.to_raw_fdQs'€ð	
Š‰
Œ
ˆ
Ø”¨¬ˆˆŒ"؈	rNcóz—| ¦«t|j|||||¬¦«}|j|_|S)aKConvert 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.
        )Ú	bufferingÚencodingÚerrorsÚnewline)r3Úopenrr)rÚmoder9r:r;r<Úfs       rÚto_filezFileDescriptor.to_file_sE€ð	
Š‰
Œ
ˆ
ÝØŒHd iØ f°gð
ñ
ô
ˆð”?ˆŒØˆrcót—ddlm}| ¦«||j¬¦«}|j|_|S)aCConvert 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.
        r)Úsocket)r5)rBr3rr)rrBÚss   rÚ	to_socketzFileDescriptor.to_socketrsE€ð	"Ð!Ð!Ð!Ð!Ð!àŠ‰
Œ
ˆ
ØˆF˜$œ(Ð#Ñ#Ô#ˆØ”?ˆŒØˆrÚreturnc	ó‡—tjd¦«}|D]h\}}}|tjkrR|tjkrB| |dt|¦«t|¦«|jzz
…¦«Œiˆfd„|D¦«S)z™Make a list of FileDescriptor from received file descriptors

        ancdata is a list of ancillary data tuples as returned by socket.recvmsg()
        ÚiNcó&•—g|]
}‰|¦«‘ŒSr
r
)Ú.0rGÚclss  €rú
<listcomp>z/FileDescriptor.from_ancdata.<locals>.<listcomp>s!ø€Ð$Ð$Ð$˜1A‘”Ð$Ð$Ð$r)ÚarrayrBÚ
SOL_SOCKETÚ
SCM_RIGHTSÚ	frombytesÚlenÚitemsize)rJÚancdataÚfdsÚ
cmsg_levelÚ	cmsg_typeÚdatas`     rÚfrom_ancdatazFileDescriptor.from_ancdata„s—ø€õŒk˜#ÑÔˆØ+2ð	Mð	MÑ'ˆJ˜	 4؝VÔ.Ò.Ð.°9ÅÔ@QÒ3QÐ3Qà—
’
˜dÐ#J¥C¨¡I¤Iµ°T±´¸S¼\Ñ1IÑ$JÐ#JÔKÑLÔLÐLøØ$Ð$Ð$Ð$ Ð$Ñ$Ô$Ð$r)rNNN)rrrr	Ú	__slots__rrrr r#r&r+r1r3r5r7r@rDÚclassmethodrWr
rrrr
s€€€€€ððð€IØ€GØ€Jðððð.ð.ð.ðððð"ðððððððððKðKðKð
ðððððððððð&ððð$ð
%Ð'7Ð&8ð
%ð
%ð
%ñ„[ð
%ð
%ð
%rrcó‚—t€2d}tjd¦«j}tj||z¦«atS)NérG)Ú_fds_buf_size_cacherLrQrBÚ
CMSG_SPACE)ÚmaxfdsÚfd_sizes  rÚfds_buf_sizer`”s=€õÐ"؈ݔ+˜cÑ"Ô"Ô+ˆÝ$Ô/°¸Ñ0@ÑAÔAÐÝÐr)
rLr"rBÚwarningsrÚRuntimeErrorrrr\r`r
rrú<module>rcs®ðØ€€€Ø	€	€	€	Ø
€
€
€
ØÐÐÐÐÐð	ð	ð	ð	ð	ñ	ô	ð	ðB%ðB%ðB%ðB%ðB%ñB%ôB%ðB%ðJÐð
ð
ð
ð
ð
r