OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
pexpect
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
ANSI.py
11.89 KB
12/08/2015 06:43:59 PM
rw-r--r--
📄
FSM.py
13.1 KB
12/08/2015 06:43:59 PM
rw-r--r--
📄
__init__.py
3.81 KB
08/21/2016 08:02:13 PM
rw-r--r--
📁
__pycache__
-
09/28/2022 06:45:12 AM
rwxr-xr-x
📄
async.py
2.28 KB
12/08/2015 06:43:59 PM
rw-r--r--
📄
bashrc.sh
85 bytes
12/08/2015 06:43:59 PM
rw-r--r--
📄
exceptions.py
1.04 KB
12/08/2015 06:43:59 PM
rw-r--r--
📄
expect.py
10.45 KB
05/21/2016 11:43:27 AM
rw-r--r--
📄
fdpexpect.py
5.49 KB
07/09/2016 09:34:08 PM
rw-r--r--
📄
popen_spawn.py
5.42 KB
12/08/2015 06:43:59 PM
rw-r--r--
📄
pty_spawn.py
34.04 KB
07/09/2016 09:34:08 PM
rw-r--r--
📄
pxssh.py
18.43 KB
08/21/2016 07:57:33 PM
rw-r--r--
📄
replwrap.py
5.04 KB
07/09/2016 09:41:01 PM
rw-r--r--
📄
run.py
6.48 KB
12/08/2015 06:43:59 PM
rw-r--r--
📄
screen.py
13.39 KB
12/08/2015 06:43:59 PM
rw-r--r--
📄
spawnbase.py
19.62 KB
05/21/2016 11:43:27 AM
rw-r--r--
📄
utils.py
4.73 KB
07/09/2016 09:34:08 PM
rw-r--r--
Editing: exceptions.py
Close
"""Exception classes used by Pexpect""" import traceback import sys class ExceptionPexpect(Exception): '''Base class for all exceptions raised by this module. ''' def __init__(self, value): super(ExceptionPexpect, self).__init__(value) self.value = value def __str__(self): return str(self.value) def get_trace(self): '''This returns an abbreviated stack trace with lines that only concern the caller. In other words, the stack trace inside the Pexpect module is not included. ''' tblist = traceback.extract_tb(sys.exc_info()[2]) tblist = [item for item in tblist if ('pexpect/__init__' not in item[0]) and ('pexpect/expect' not in item[0])] tblist = traceback.format_list(tblist) return ''.join(tblist) class EOF(ExceptionPexpect): '''Raised when EOF is read from a child. This usually means the child has exited.''' class TIMEOUT(ExceptionPexpect): '''Raised when a read time exceeds the timeout. '''