/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
certbot_apache
/
_internal
/
__pycache__
/
Upload File
HOME
� E��c� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z dd lm Z G d� de j � � Z G d � de� � Z G d� de� � Z G d� de� � Ze j � e� � e j � e� � e j � e� � dS )z: apacheconfig implementation of the ParserNode interfaces � )�Any)�Iterable)�List)�Optional)�Tuple)� assertions)� interfaces)�parsernode_util)� ParserNodec �X � � e Zd ZdZdeddf� fd�Zdeddfd�Zdeded fd �Z � xZ S ) �ApacheParserNodez� apacheconfig implementation of ParserNode interface. Expects metadata `ac_ast` to be passed in, where `ac_ast` is the AST provided by parsing the equivalent configuration text using the apacheconfig library. �kwargs�returnNc �� �� t j |� � \ }}}} t � � j di |�� || _ || _ || _ || _ | j d | _ d S )N�ac_ast� ) �util�parsernode_kwargs�super�__init__�ancestor�filepath�dirty�metadata�_raw)�selfr r r r r � __class__s ��G/usr/lib/python3/dist-packages/certbot_apache/_internal/apacheparser.pyr zApacheParserNode.__init__ sg �� �.2�.D�V�.L�.L�+��%��8������"�"�6�"�"�"� �� � �� ��� � �� ���x�0�� � � � �msgc � � d S )Nr )r r s r �savezApacheParserNode.save s � ��r �namec �r � t t j t j | t j | j �� � gS )z*Find ancestor BlockNodes with a given name�r# � parametersr r r ��ApacheBlockNoder �PASSr )r r# s r �find_ancestorszApacheParserNode.find_ancestors"