def _basic_auth_str(username, password):
    """Returns a Basic Auth string."""

    authstr = 'Basic ' + to_native_string(
        b64encode(((username, password) % '%s:%s').encode('latin1')).strip()
    )

    return authstr
dataset/ETHPy150Open BergWerkGIS/QGIS-CKAN-Browser/CKAN-Browser/request/auth.py/_basic_auth_str/swapped operands of `%`