| Current Path : /proc/self/root/usr/lib/python3/dist-packages/certbot_apache/__pycache__/ |
| Current File : //proc/self/root/usr/lib/python3/dist-packages/certbot_apache/__pycache__/obj.cpython-38.pyc |
U
���]�# � @ sJ d Z ddlZddlmZ ddlmZ G dd� dej�ZG dd� de�ZdS ) z8Module contains classes used by the Apache Configurator.� N)�Set)�commonc s` e Zd ZdZdd� Zdd� Zdd� Z� fdd �Zd
d� Zdd
� Z dd� Z
dd� Zdd� Z� Z
S )�AddrzRepresents an Apache address.c C s@ t || j�r<| j|jkp:| jd |jd ko:| �� o:|�� S dS )zTThis is defined as equivalent within Apache.
ip_addr:* == ip_addr
r F)�
isinstance� __class__�tup�is_wildcard��self�other� r �4/usr/lib/python3/dist-packages/certbot_apache/obj.py�__eq__ s ��zAddr.__eq__c C s | � |� S �N�r r r r r
�__ne__ s zAddr.__ne__c C s dt | j� d S )Nzcertbot_apache.obj.Addr(�))�reprr �r
r r r
�__repr__ s z
Addr.__repr__c s t t| ��� S r )�superr �__hash__r �r r r
r s z
Addr.__hash__c C s |� � | � � kS )zAReturns if addr.get_addr() is more specific than self.get_addr().)�_rank_specific_addr�r
�addrr r r
�_addr_less_specific"