관리-도구
편집 파일: opcode.cpython-38.pyc
U /?�f� � @ s� d Z ddlZddlZG dd� dejj�ZG dd� dejj�Z e ed�dd �Zeed �dd�Z eed �dd�Zee d �dd�Zeed �dd�ZejZejZejZejZejZdS )zDNS Opcodes.� Nc @ s8 e Zd ZdZdZdZdZdZedd� �Z edd � �Z d S )�Opcoder � � � � c C s dS )N� � ��clsr r �8/opt/hc_python/lib/python3.8/site-packages/dns/opcode.py�_maximum$ s zOpcode._maximumc C s t S )N)� UnknownOpcoder r r r �_unknown_exception_class( s zOpcode._unknown_exception_classN)�__name__� __module__�__qualname__�QUERY�IQUERY�STATUS�NOTIFY�UPDATE�classmethodr r r r r r r s r c @ s e Zd ZdZdS )r zAn DNS opcode is unknown.N)r r r �__doc__r r r r r - s r )�text�returnc C s t �| �S )z�Convert text into an opcode. *text*, a ``str``, the textual opcode Raises ``dns.opcode.UnknownOpcode`` if the opcode is unknown. Returns an ``int``. )r � from_text)r r r r r 1 s r )�flagsr c C s t | d@ d? �S )zpExtract an opcode from DNS message flags. *flags*, an ``int``, the DNS flags. Returns an ``int``. � x � )r �r r r r � from_flags>