INNER CODE UNIT · Python

file_path

rfc-st/humble · humble.py:441

    file_path = OS_PATH / HUMBLE_DIRS[1] / l10n_file
    with file_path.open(encoding="utf8") as l10n_source:
        l10n_lines = islice(l10n_source, l10n_slice, None) if slice_ln else \
            l10n_source
        for line in l10n_lines:
            prefix = f" {STYLE[0]}" if line.startswith("[") else "  "
            print(f"{prefix}{line}", end="")
    sys.exit(0)


def validate_testssl_uri(uri):
    """Check that the URI is well-formed before analyzing it.

    Exit with a specific message if the URI has no scheme, an unsupported
    one, no host, or embedded whitespace that could smuggle extra arguments
    into the `testssl.sh` command; related to `-e` option.
    """
    if any(char.isspace() for char in uri):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…