%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/cleaner/parsers/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/cleaner/parsers/__pycache__/hostname_parser.cpython-312.pyc

�

i��d'��:�ddlZddlmZddlmZGd�de�Zy)�N)�SoSCleanerParser)�SoSHostnameMapc�2��eZdZdZdZdgZ�fd�Zd�Z�xZS)�SoSHostnameParserzHostname Parser�hostname_mapz5(((\b|_)[a-zA-Z0-9-\.]{1,200}\.[a-zA-Z]{1,63}(\b|_)))c�J��t�|_tt|�|�y)N)r�mapping�superr�__init__)�self�config�	__class__s  ��E/usr/lib/python3/dist-packages/sos/cleaner/parsers/hostname_parser.pyrzSoSHostnameParser.__init__s���%�'���
���/��7�c��d}|jD]-}tj||tj�s�)||fcS|j	|�\}}||z
}|j
r|j
|�\}}||z
}||fS)aThis will be called for every line in every file we process, so that
        every parser has a chance to scrub everything.

        We are overriding parent method since we need to swap ordering of
        _parse_line_with_compiled_regexes and _parse_line calls.
        r)�skip_line_patterns�re�match�I�_parse_line�compile_regexes�!_parse_line_with_compiled_regexes)r�line�count�skip_pattern�_count�_rcounts      r�
parse_linezSoSHostnameParser.parse_lines����� �3�3�	#�L��x�x��d�B�D�D�1��U�{�"�	#��'�'��-���f�
������� �B�B�4�H�M�D�'��W��E��U�{�r)	�__name__�
__module__�__qualname__�name�map_file_key�regex_patternsrr�
__classcell__)rs@rrrs!����D�!�L�@��N�8�rr)r�sos.cleaner.parsersr�!sos.cleaner.mappings.hostname_maprr�rr�<module>r)s��
�0�<��(�r

Zerion Mini Shell 1.0