⚝
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
/
pexpect
/
__pycache__
/
View File Name :
fdpexpect.cpython-310.pyc
o !^ @ sR d Z ddlmZ ddlmZmZ ddlmZmZ ddl Z dgZ G dd deZdS ) az This is like pexpect, but it will work with any file descriptor that you pass it. You are responsible for opening and close the file descriptor. This allows you to use Pexpect with sockets and named pipes (FIFOs). PEXPECT LICENSE This license is approved by the OSI and FSF as GPL-compatible. http://opensource.org/licenses/isc-license.txt Copyright (c) 2012, Noah Spurrier
PERMISSION TO USE, COPY, MODIFY, AND/OR DISTRIBUTE THIS SOFTWARE FOR ANY PURPOSE WITH OR WITHOUT FEE IS HEREBY GRANTED, PROVIDED THAT THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE APPEAR IN ALL COPIES. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ) SpawnBase)ExceptionPexpectTIMEOUT)select_ignore_interruptspoll_ignore_interrupts Nfdspawnc sj e Zd ZdZ dddZd d Zdd Zdd dZdd Zdd Z dd Z dd Zd fdd Z Z S )r zThis is like pexpect.spawn but allows you to supply your own open file descriptor. For example, you could use it to read through a file looking for patterns, or to control a modem or serial device. N strictFc C s t |t dkrt|dr| }t |t dkrtdzt| W n ty/ tdw d| _d| _t j | ||||||d || _d| _d| _ d| | _| | _dS ) zThis takes a file descriptor (an int) or an object that support the fileno() method (returning an int). All Python file-like objects support fileno(). r filenozdThe fd argument is not an int. If this is a command string then maybe you want to use pexpect.spawn.z/The fd argument is not a valid file descriptor.N)encodingcodec_errorsFz
)typehasattrr r osfstatOSErrorargsZcommandr __init__child_fdZown_fdclosednameuse_poll) selffdr timeoutZmaxreadZsearchwindowsizeZlogfiler r r r 3/usr/lib/python3/dist-packages/pexpect/fdpexpect.pyr $ s&