Your IP : 3.137.203.53
�
�Ѡg�@ � �D � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZm Z m
Z
mZmZ d dl
mZ d dlmZ d dlmZmZ dZ G d� d e� � Z G d
� de� � Zded
edeeef fd�Zdedefd�Zdeeef defd�Zdedefd�Zdeeef defd�Zdeeef defd�Zd0dede
ee de e fd�Zd� Z defd�Z!d� Z"d� Z#ded efd!�Z$d"ed#ede
e fd$�Z%d"ede
e fd%�Z&d1d'�Z'd(� Z(d2d*ed+efd,�Z)d0d+efd-�Z*d0d+efd.�Z+d/� Z,dS )3� N)�Path)�Union�Iterable�Optional�Tuple�List)�Enum)�ClPwd)�get_rhn_systemid_value� is_ubuntuz0/opt/cpvendor/config/cl-manager-ui-settings.jsonc � � e Zd ZdZdZdZdS )�
PluginTypez2
Plugin types that are currently detected
zobject-cachezadvanced-cacheN)�__name__�
__module__�__qualname__�__doc__�OBJECT_CACHE�ADVANCED_CACHE� � ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.22-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clwpos_lib.pyr r s$ � � � � � �� � "�L�%�N�N�Nr r c � � e Zd ZdZdZdZdZdS )� WpPluginszj
Static WP plugin names, that are not detected
dynamically from drop-in files, dir names, etc
�Unknownz WP Rocket�AccelerateWPN)r r r r �UNKNOWN� WP_ROCKET�
ACCELERATE_WPr r r r r ! s) � � � � � �� � �G��I�"�M�M�Mr r �line�is_multiline_comment�returnc �
� |r[d| vrdS | � d� � }t | d|� d� � \ }}t | |dz d� d� � \ }}||z |fS d| v r!| � d� � }| d|� dfS d| v r!| � d� � }| d|� dfS d | v rU| � d � � }t | d|� d� � \ }}t | |dz d� d� � \ }}||z |fS | dfS )
z�
Yep, this bicycle is needed to handle different comment types in .php file
https://www.php.net/manual/en/language.basic-syntax.comments.php
and ensure that needed line is not under comment
z*/)� TNT� Fz//�#z/*)�find�
clean_comment)r r �pos�part1�_�part2s r r'