File: //opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/__pycache__/clwpos_lib.cpython-311.pyc
�
K�fU9 � �L � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl m
Z
d dlmZm
Z
mZmZmZ d dlmZ d dlmZ d d lmZ G d
� de� � Z G d� d
e� � Zdededeeef fd�Zdedefd�Zdeee
f defd�Zdedefd�Zdeee
f defd�Zdeee
f defd�Z d1dedeee de
e fd�Z!d� Z"de
fd�Z#d � Z$d!� Z%de
d"efd#�Z&d$e
d%e
dee fd&�Z'd$e
dee fd'�Z(d2d)�Z)d*� Z*d3d,efd-�Z+d.� Z,d/� Z-d0� Z.dS )4� )�print_function)�absolute_import)�divisionN)�Path)�Union�Iterable�Optional�Tuple�List)�Enum)�ClPwd)�get_rhn_systemid_valuec � � 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.8-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"