File: //opt/alt/python37/lib/python3.7/site-packages/clcommon/__pycache__/clwpos_lib.cpython-37.opt-1.pyc
B
!��¨�� @ s� 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
d� de�ZG dd
� d
e�Zeeeeef d�dd�Zeed�dd�Zeee
f ed�dd�Zeed�dd�Zeee
f ed�dd�Zeee
f ed�dd�Z d@eeee e
e d�dd �Z!d!d"� Z"e
d#�d$d%�Z#d&d'� Z$d(d)� Z%e
ed*�d+d,�Z&e
e
ee d-�d.d/�Z'e
ee d0�d1d2�Z(dAd4d5�Z)d6d7� Z*d8d9� Z+d:d;� Z,d<d=� Z-d>d?� Z.dS )B� )�print_function)�absolute_import)�divisionN)�Path)�Union�Iterable�Optional�Tuple�List)�Enum)�ClPwd)�get_rhn_systemid_valuec @ s e Zd ZdZdZdZdS )�
PluginTypez2
Plugin types that are currently detected
zobject-cachezadvanced-cacheN)�__name__�
__module__�__qualname__�__doc__ZOBJECT_CACHE�ADVANCED_CACHE� r r ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.1-1.el9.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/clcommon/clwpos_lib.pyr s r c @ s e Zd ZdZdZdZdZdS )� WpPluginszj
Static WP plugin names, that are not detected
dynamically from drop-in files, dir names, etc
ZUnknownz WP RocketZAccelerateWPN)r r r r �UNKNOWN� WP_ROCKET�
ACCELERATE_WPr r r r r s r )�line�is_multiline_comment�returnc C s� |rVd| krdS | � d�}t| d|� d�\}}t| |d d� d�\}}|| |fS d| krx| � d�}| d|� dfS d| kr�| � d�}| d|� dfS d | kr�| � d �}t| d|� d�\}}t| |d d� d�\}}|| |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 �posZpart1�_Zpart2r r r r! * s&