a
    �DOg�M  �                   @   sj  d dl Z d dlZd dlZg d�ZeefZdd� Zd?dd�Zd@dd	�Z	d
d� Z
dd
� Ze�dd�Z
e�dd�Zdd� Zdd� ZdZdadadd� ZdAdd�Zdd� ZdBdd�ZdadadZdZdCdd �Zdd ddd!�d"d#�Zddd$d%�d&d'�Zd(Zda da!da"dDd)d*�Z#d+d,� Z$d-Z%e%d. d/ Z&d0d1� Z'd2d3� Z(d4d5� Z)d6d7� Z*d8d9� Z+d:d;� Z,d<d=� Z-e.d>k�rfe,�  dS )E�    N)�encode�decode�encodebytes�decodebytes�	b64encode�	b64decode�	b32encode�	b32decode�	b16encode�	b16decode�	b85encode�	b85decode�	a85encode�	a85decode�standard_b64encode�standard_b64decode�urlsafe_b64encode�urlsafe_b64decodec                 C   sx   t | t�r2z| �d�W S  ty0   td��Y n0 t | t�r@| S zt| ��� W S  tyr   td| j	j
 �d �Y n0 d S )N�asciiz4string argument should contain only ASCII charactersz>argument should be a bytes-like object or ASCII string, not %r)�
isinstance�strr   �UnicodeEncodeError�
ValueError�bytes_types�
memoryview�tobytes�	TypeError�	__class__�__name__��s� r!   �/usr/lib64/python3.9/base64.py�_bytes_from_decode_data"