def build_locations(locations):
    """
    Output a bullet list from message's location items
    """
    output = u'<ul>{0}</ul>'
    items = []
    for location, lineno in locations:
        items.append(u'<li>{location}:{lineno}</li>'.format(location=
            location, lineno=lineno))
    return output.format('\n'.join(items))
