$84 GRAYBYTE WORDPRESS FILE MANAGER $76

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.149
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/tap/

HOME
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])


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
9 Apr 2026 8.31 AM
root / root
0755
__pycache__
--
11 Feb 2026 9.30 AM
root / root
0755
tests
--
11 Feb 2026 9.30 AM
root / root
0755
__init__.py
0.083 KB
20 Jan 2026 1.01 PM
root / root
0644
__main__.py
0.047 KB
20 Jan 2026 1.01 PM
root / root
0644
adapter.py
1.474 KB
20 Jan 2026 1.01 PM
root / root
0644
directive.py
1.749 KB
20 Jan 2026 1.01 PM
root / root
0644
formatter.py
0.744 KB
20 Jan 2026 1.01 PM
root / root
0644
line.py
4.563 KB
20 Jan 2026 1.01 PM
root / root
0644
loader.py
2.874 KB
20 Jan 2026 1.01 PM
root / root
0644
main.py
2.074 KB
20 Jan 2026 1.01 PM
root / root
0644
parser.py
6.628 KB
20 Jan 2026 1.01 PM
root / root
0644
rules.py
3.299 KB
20 Jan 2026 1.01 PM
root / root
0644
runner.py
4.947 KB
20 Jan 2026 1.01 PM
root / root
0644
tracker.py
7.398 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF