3
tûœ],  ã               @   sL   d dl Z d dlmZ e jddddddd	d
dddddgƒZG dd„ deƒZdS )é    N)Ú	MSG_TYPESÚ_MsgBaseÚmsg_idÚsymbolÚmsgÚCÚcategoryÚ
confidenceÚabspathÚpathÚmoduleÚobjÚlineÚcolumnc               @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚMessagez<This class represent a message to be issued by the reportersc          	   C   s(   t j| ||||d t|d  |f|žŽ S )Nr   )r   Ú__new__r   )Úclsr   r   Úlocationr   r	   © r   ú8/tmp/pip-build-fn42xldr/pylint/pylint/message/message.pyr   !   s    
zMessage.__new__c             C   s   |j f tt| j| ƒƒŽS )zÂFormat the message according to the given template.

        The template format is the one of the format method :
        cf. http://docs.python.org/2/library/string.html#formatstrings
        )ÚformatÚdictÚzipÚ_fields)ÚselfÚtemplater   r   r   r   -   s    zMessage.formatN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s   r   )ÚcollectionsZpylint.constantsr   Ú
namedtupler   r   r   r   r   r   Ú<module>   s    