ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/__pycache__/clhook.cpython-311.pyc |
� I/�ft � �n � d dl Z d dlZd dlZd dlZd dlZdZdZdZdZ d� Z d� Zefd�Zefd �Z efd �Zd� ZdS )� Nz/etc/sysconfig/cloudlinux�hooks�;zpython-cllib:clhook:c �t � t j dd�� � }t |_ |� | � � |S )z6 read config from file_name return config NF)� interpolation�strict)�configparser�ConfigParser�str�optionxform�read)� file_name�configs ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.11-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clhook.py� get_configr s8 � � � &�T�%� H� H� H�F��F�� �K�K� �����M� c �D � |� dt j � � � �}t |dd�� � 5 }| � |� � ddd� � n# 1 swxY w Y t j ||� � n/# t $ r"}d|� |� dt |� � � �gcY d}~S d}~ww xY wdd gS ) zG write config to file_name return [BOOLEAN_STATE, MESSAGE] �.�wzutf-8)�encodingNFz write error T�OK )�os�getpid�open�write�shutil�move�IOErrorr )r r �debug_local_name�tmp_cfg_path� tmpconfig�es r �write_configr"