⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
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&