o
    O6uf5  ã                   @   s    d dl mZ G dd„ deƒZdS )é    )ÚSoSMapc                   @   s    e Zd ZdZdZdZdd„ ZdS )ÚSoSKeywordMapa'  Mapping store for user provided keywords

    By default, this map will perform no matching or obfuscation. It relies
    entirely on the use of the --keywords option by the user.

    Any keywords provided are then obfuscated into 'obfuscatedwordX', where X
    is an incrementing integer.
    Tr   c                 C   s6   d| j › �}|  j d7  _ || j ¡ v r|  |¡S |S )NÚobfuscatedwordé   )Ú
word_countÚdatasetÚvaluesÚsanitize_item)ÚselfÚitemÚ_ob_item© r   úB/usr/lib/python3/dist-packages/sos/cleaner/mappings/keyword_map.pyr	      s
   
zSoSKeywordMap.sanitize_itemN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úmatch_full_words_onlyr   r	   r   r   r   r   r      s
    	r   N)Úsos.cleaner.mappingsr   r   r   r   r   r   Ú<module>   s   
