def warning_on_one_line(message, category, filename, lineno, file=None,
    line=None):
    """User warning formatter"""
    return '{}:{}: {}: {}\n'.format(filename, lineno, category.__name__,
        message)
