
    ~ g%                     2    S SK Jr  S SKJr   " S S\5      rg)    )SoSCleanerParser)SoSUsernameMapc                   D   ^  \ rS rSrSrSrSr/ r/ 4U 4S jjrS r	Sr
U =r$ )SoSUsernameParser   a  Parser for obfuscating usernames within an sos report archive.

Note that this parser does not rely on regex matching directly, like most
other parsers do. Instead, usernames are discovered via scraping the
collected output of lastlog. As such, we do not discover new usernames
later on, and only usernames present in lastlog output will be obfuscated,
and those passed via the --usernames option if one is provided.
zUsername Parserusername_mapc                 B   > [        5       U l        [        TU ]  X5        g )N)r   mappingsuper__init__)selfconfigskip_cleaning_files	__class__s      E/usr/lib/python3/dist-packages/sos/cleaner/parsers/username_parser.pyr   SoSUsernameParser.__init__   s    %'5    c                 
    US4$ )Nr    )r   lines     r   _parse_lineSoSUsernameParser._parse_line!   s    Qwr   )r
   )__name__
__module____qualname____firstlineno____doc__namemap_file_keyregex_patternsr   r   __static_attributes____classcell__)r   s   @r   r   r      s+     D!LN35 6 r   r   N)sos.cleaner.parsersr   !sos.cleaner.mappings.username_mapr   r   r   r   r   <module>r%      s    1 <( r   