관리-도구
편집 파일: rrset.cpython-38.pyc
U /?�f�# � @ sN d Z ddlmZmZmZmZmZmZ ddlZ ddl Z ddlZ ddlZ G dd� de j j�Zdee jjef eee jjef ee jjef ee ee jj ee jj eee jj ed� dd �Zee jjef eee jjef ee jjef eed �dd�Zdee jjef eee jj ee jj ed �dd�Zee jjef eeed�dd�ZdS )z)DNS RRsets (an RRset is a named rdataset)� )�Any� Collection�Dict�Optional�Union�castNc s< e Zd ZdZddgZejjdfejj ej jejjejje ej j d�� fdd� Z� fdd �Zd d� Zdd � Z� fdd�Zeeed�� fdd�Zd ejj ej jejjejje ej j ed�� fdd� Zd!e ejj eeeef ed�� fdd� Zd"ee ejj e ejj eeef ed�� fdd� Zejjd�dd�Z� Z S )#�RRseta6 A DNS RRset (named rdataset). RRset inherits from Rdataset, and RRsets can be treated as Rdatasets in most cases. There are, however, a few notable exceptions. RRsets have different to_wire() and to_text() method arguments, reflecting the fact that RRsets always have an owner name. �name�deletingN)r �rdclass�rdtype�coversr c s t � �|||� || _|| _dS )zCreate a new RRset.N)�super�__init__r r ��selfr r r r r �� __class__� �7/opt/hc_python/lib/python3.8/site-packages/dns/rrset.pyr ( s zRRset.__init__c s t � �� }| j|_| j|_|S �N)r �_cloner r )r �objr r r r 6 s zRRset._clonec C s� | j dkrd}ndtj�| j � d }| jd k rDdtj�| j� }nd}dt| j� d tj�| j� d tj�| j � | | d | � � d S ) Nr � �(�)z delete=z<DNS � z RRset: �>)r �dns� rdatatype�to_textr � rdataclass�strr r r Z_rdata_repr)r ZctextZdtextr r r �__repr__<