<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">from __future__ import annotations

import base64
import logging

log = logging.getLogger("wheel")


def urlsafe_b64encode(data: bytes) -&gt; bytes:
    """urlsafe_b64encode without padding"""
    return base64.urlsafe_b64encode(data).rstrip(b"=")


def urlsafe_b64decode(data: bytes) -&gt; bytes:
    """urlsafe_b64decode without padding"""
    pad = b"=" * (4 - (len(data) &amp; 3))
    return base64.urlsafe_b64decode(data + pad)
</pre></body></html>