def format_user_agent(name=None):
    """Construct a User-Agent suitable for use in client code.

    This will identify use by the provided ``name`` (which should be on the
    format ``dist_name/version``), Mopidy version and Python version.

    .. versionadded:: 1.1
    """
    parts = [(mopidy.__version__) % 'Mopidy/%s',
             '%s/%s' % (platform.python_implementation(),
                        platform.python_version())]
    if name:
        parts.insert(0, name)
    return ' '.join(parts)
dataset/ETHPy150Open mopidy/mopidy/mopidy/httpclient.py/format_user_agent/swapped operands of `%`