Server IP : 184.107.3.203 / Your IP : 216.73.216.51 Web Server : Apache System : Linux dedicated2.avenfashion.com.ph 4.18.0-553.40.1.el8_10.x86_64 #1 SMP Mon Feb 10 12:11:18 EST 2025 x86_64 User : adminteladeoro ( 1015) PHP Version : 8.2.28 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/lib/python3.6/site-packages/sos/cleaner/parsers/__pycache__/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
3 ~ �g= � @ s4 d dl Z d dlmZ d dlmZ G dd� de�ZdS )� N)�SoSCleanerParser)�SoSHostnameMapc s6 e Zd ZdZdZdgZg f� fdd� Zdd� Z� ZS )�SoSHostnameParserzHostname ParserZhostname_mapz5(((\b|_)[a-zA-Z0-9-\.]{1,200}\.[a-zA-Z]{1,63}(\b|_)))c s t � | _t� j||� d S )N)r �mapping�super�__init__)�self�configZskip_cleaning_files)� __class__� �%/usr/lib/python3.6/hostname_parser.pyr s zSoSHostnameParser.__init__c C sf d}x&| j D ]}tj||tj�r||fS qW | j|�\}}||7 }| jr^| j|�\}}||7 }||fS )a This 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 )Zskip_line_patterns�re�match�IZ_parse_lineZcompile_regexesZ!_parse_line_with_compiled_regexes)r �line�countZskip_pattern�_countZ_rcountr r r � parse_line s zSoSHostnameParser.parse_line) �__name__� __module__�__qualname__�nameZmap_file_keyZregex_patternsr r � __classcell__r r )r r r s r )r Zsos.cleaner.parsersr Z!sos.cleaner.mappings.hostname_mapr r r r r r �<module> s