File: //lib64/python3.9/encodings/__pycache__/punycode.cpython-39.opt-1.pyc
a
    �DOg�  �                   @   s�   d Z ddlZdd� Zdd� Zdd� Zd	d
� Zdd� Zd
Zdd� Zdd� Z	dd� Z
dd� Zdd� Zdd� Z
dd� ZG dd� dej�ZG dd� dej�ZG d d!� d!ej�ZG d"d#� d#eej�ZG d$d%� d%eej�Zd&d'� ZdS )(uY    Codec for the Punicode encoding, as specified in RFC 3492
Written by Martin v. Löwis.
�    Nc                 C   sP   t � }t� }| D ]*}t|�dk r0|�t|�� q|�|� qt|�}t|�|fS )z 3.1 Basic code point segregation�   )�	bytearray�set�ord�append�add�sorted�bytes)�str�base�extended�c� r   �*/usr/lib64/python3.9/encodings/punycode.py�	segregate
   s    r   c                 C   s&