🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-23 19:51:32 | PHP 8.2.31
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clcommon
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/__pycache__
🔄 Refresh
✏️
Editing: clhook.cpython-311.opt-1.pyc
Read Only
� �4�L��j� � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z dZ dZdZdZ ej e� � Zd� Zd� Ze fd�Ze fd �Ze fd �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.40-1.el9.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 �t � t j t j � |� � �� � \ }} t j |d� � t j |dd�� � 5 }d}| � |� � ddd� � n# 1 swxY w Y t j ||� � n]# t $ rP |�& t j |� � n# t $ r Y nw xY w t j |� � n# t $ r Y nw xY w� w xY wn/# t $ r"}d|� |� dt |� � � �gcY d}~S d}~ww xY wd d gS )zG write config to file_name return [BOOLEAN_STATE, MESSAGE] )�diri� �w�utf-8)�encodingNFz write error T�OK )�tempfile�mkstemp�os�path�dirname�fchmod�fdopen�write�shutil�move� BaseException�close�OSError�unlink�IOErrorr )r r �debug_local_name�fd�tmp_cfg_path� tmpconfig�es r �write_configr, '