INNER CODE UNIT · Python

Refusal

IvanMurzak/Unity-MCP · .github/scripts/chain_feed.py:519

class Refusal(Exception):
    """Exit 2 with one line. Never a traceback."""


# ----------------------------------------------------------------------
# small utilities
# ----------------------------------------------------------------------


def as_posix_abs(path):
    """Absolute, forward-slashed. `C:/Projects/...`, never `C:\\Projects` or `/c/...`."""
    return str(Path(path).resolve()).replace("\\", "/")


def sha256_bytes(data):
    return hashlib.sha256(data).hexdigest()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…