Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/tap//formatter.py
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])
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | June 25 2025 08:31:36 | root / root | 0755 | |
__pycache__ | -- | May 15 2025 08:30:34 | root / root | 0755 | |
tests | -- | May 15 2025 08:30:38 | root / root | 0755 | |
| | | | | |
__init__.py | 0.083 KB | April 17 2025 13:10:58 | root / root | 0644 | |
__main__.py | 0.047 KB | April 17 2025 13:10:58 | root / root | 0644 | |
adapter.py | 1.474 KB | April 17 2025 13:10:58 | root / root | 0644 | |
directive.py | 1.749 KB | April 17 2025 13:10:58 | root / root | 0644 | |
formatter.py | 0.744 KB | April 17 2025 13:10:58 | root / root | 0644 | |
line.py | 4.563 KB | April 17 2025 13:10:58 | root / root | 0644 | |
loader.py | 2.874 KB | April 17 2025 13:10:58 | root / root | 0644 | |
main.py | 2.074 KB | April 17 2025 13:10:58 | root / root | 0644 | |
parser.py | 6.628 KB | April 17 2025 13:10:58 | root / root | 0644 | |
rules.py | 3.299 KB | April 17 2025 13:10:58 | root / root | 0644 | |
runner.py | 4.947 KB | April 17 2025 13:10:58 | root / root | 0644 | |
tracker.py | 7.398 KB | April 17 2025 13:10:58 | root / root | 0644 | |