OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
tap
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:06 AM
rwxr-xr-x
📄
__init__.py
83 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
__main__.py
48 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📁
__pycache__
-
02/07/2025 10:01:36 PM
rwxr-xr-x
📄
adapter.py
1.51 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
directive.py
1.76 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
formatter.py
762 bytes
12/18/2024 10:23:15 AM
rw-r--r--
📄
line.py
4.62 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
loader.py
2.88 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
main.py
2.07 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
parser.py
6.7 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
rules.py
3.39 KB
12/18/2024 10:23:15 AM
rw-r--r--
📄
runner.py
5.08 KB
12/18/2024 10:23:15 AM
rw-r--r--
📁
tests
-
02/07/2025 10:01:36 PM
rwxr-xr-x
📄
tracker.py
7.43 KB
12/18/2024 10:23:15 AM
rw-r--r--
Editing: formatter.py
Close
import traceback def format_exception(exception): """Format an exception as diagnostics output. exception is the tuple as expected from sys.exc_info. """ exception_lines = traceback.format_exception(*exception) # The lines returned from format_exception do not strictly contain # one line per element in the list (i.e. some elements have new # line characters in the middle). Normalize that oddity. lines = "".join(exception_lines).splitlines(True) return format_as_diagnostics(lines) def format_as_diagnostics(lines): """Format the lines as diagnostics output by prepending the diagnostic #. This function makes no assumptions about the line endings. """ return "".join(["# " + line for line in lines])