/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
certbot_apache
/
_internal
/
__pycache__
/
Upload File
HOME
� E��cT$ � �� � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd l m Z dd lmZ ddl mZ ddlmZ G d � dej � � Z G d� d� � ZdS )z8Module contains classes used by the Apache Configurator.� N)�Any)�Iterable)�Optional)�Pattern)�Set)�Union)�ApacheBlockNode)�AugeasBlockNode)� DualBlockNode)�commonc � � � e Zd ZdZdedefd�Zdefd�Zde f� fd�Z dd defd�Zde fd �Zdd defd �Z defd�Zdedej fd �Z� xZS )�AddrzRepresents an Apache address.�other�returnc �� � t || j � � rT| j |j k pC| j d |j d k o'| � � � o|� � � S dS )zTThis is defined as equivalent within Apache. ip_addr:* == ip_addr r F)� isinstance� __class__�tup�is_wildcard��selfr s �>/usr/lib/python3/dist-packages/certbot_apache/_internal/obj.py�__eq__zAddr.__eq__ sv � � �e�T�^�,�,� B��X���*� A��X�a�[�E�I�a�L�0� @��%�%�'�'�@�,1�,=�,=�,?�,?� B� �u� c �2 � dt | j � � � d�S )Nz"certbot_apache._internal.obj.Addr(�))�reprr �r s r �__repr__z Addr.__repr__ s � �E�D���N�N�E�E�E�Er c �D �� t � � � � � S �N)�super�__hash__)r r s �r r# z Addr.__hash__# s �� � �w�w���!�!�!r �addrc �V � |� � � | � � � k S )zAReturns if addr.get_addr() is more specific than self.get_addr().)�_rank_specific_addr�r r$ s r �_addr_less_specificzAddr._addr_less_specific( s'