관리-도구
편집 파일: clwpos_lib.cpython-311.opt-1.pyc
� P�Cg�= � �< � d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZm Z m Z mZmZ d dl mZ d dlmZ d dlmZ G d� de� � Z G d � d e� � Zdeded eeef fd�Zded efd�Zdeeef d efd�Zded efd�Zdeeef d efd�Zdeeef d efd�Zd/dede ee d e e fd�Zd� Zdefd�Zd� Z d� Z!dedefd �Z"d!ed"ed e e fd#�Z#d!ed e e fd$�Z$d0d&�Z%d'� Z&d1d)ed*efd+�Z'd/d*efd,�Z(d/d*efd-�Z)d.� Z*dS )2� N)�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.17-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&