
    -_g                     &    d dl mZ  G d de      Zy)    )SoSMapc                   "    e Zd ZdZdZdZdZd Zy)SoSUsernameMapa  Mapping to store usernames matched from ``lastlog`` output.

    Usernames are obfuscated as ``obfuscateduserX`` where ``X`` is a counter
    that gets incremented for every new username found.

    Note that this specifically obfuscates user_names_ and not UIDs.
    Tr   c                     d| j                    }| xj                   dz  c_         || j                  j                         v r| j                  |j	                               S |S )z@Obfuscate a new username not currently found in the map
        obfuscateduser   )
name_countdatasetvaluessanitize_itemlower)selfitemob_names      C/usr/lib/python3/dist-packages/sos/cleaner/mappings/username_map.pyr   zSoSUsernameMap.sanitize_item   sT     #4??"341dll))++%%djjl33    N)__name__
__module____qualname____doc__ignore_short_itemsmatch_full_words_onlyr	   r    r   r   r   r      s      Jr   r   N)sos.cleaner.mappingsr   r   r   r   r   <module>r      s    (V r   