⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
jeepney
/
__pycache__
/
View File Name :
fds.cpython-310.pyc
o ` @ sR d dl Z d dlZd dlZd dlmZ G dd deZG dd dZdadd Z dS ) N)warnc @ s e Zd ZdZdS ) NoFDErrorzQRaised by :class:`FileDescriptor` methods if it was already closed/converted N)__name__ __module____qualname____doc__ r r -/usr/lib/python3/dist-packages/jeepney/fds.pyr s r c @ s e Zd ZdZdZdZdZdd Zdd Zd d Z dd Z d d Zdd Zdd Z dd Zdd ZdddZdd Zedd gfddZdS ) 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. _fdc C s || _ d S Nr selffdr r r __init__ s zFileDescriptor.__init__c C s4 | j }| j | jkrd}n| j | jkrd}d| dS )Nclosed convertedz
)r _CLOSED _CONVERTEDr Zdetailr r r __repr__ s zFileDescriptor.__repr__c C sB | j | jkrdS | j | jkrtd| j| j | _ }t| dS )a 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)r r r r oscloser r r r r $ s zFileDescriptor.closec C s | S r r r r r r __enter__5 s zFileDescriptor.__enter__c C s | d S r )r )r exc_typeZexc_valexc_tbr r r __exit__8 s zFileDescriptor.__exit__c C s4 | j dkrtd| j dtd| d | d S d S )Nr zFileDescriptor (z") was neither closed nor converted ) stacklevelsource)r r ResourceWarningr r r r r __del__; s zFileDescriptor.__del__c C s0 | j dk r| j | jkr dnd}td| d S )Nr r r z"FileDescriptor object was already )r r r r r r r _checkC s zFileDescriptor._checkc C s | | jS )zGet the integer file descriptor This does not change the state of the :class:`FileDescriptor` object, unlike the ``to_*`` methods. )r&