관리-도구
편집 파일: normalizer.cpython-311.pyc
� �܋f1% � � � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z m Z d dlmZ n# e $ r d dlmZ Y nw xY wd dlmZ d dlmZ d d lmZ ddeded efd�Zdde e e d efd�Zedk r e� � dS dS )� N)�dumps)�abspath)�python_version)�List�Optional)�unidata_version)�from_fp)�CliDetectionResult)�__version__�yes�question�default�returnc �b � dddddd�}|�d}n$|dk rd}n|dk rd }nt d |z � � � t j � | |z � � t � � � � � }|�|dk r|| S ||v r|| S t j � d� � �~) a� Ask a yes/no question via input() and return their answer. "question" is a string that is presented to the user. "default" is the presumed answer if the user just hits <Enter>. It must be "yes" (the default), "no" or None (meaning an answer is required of the user). The "answer" return value is True for "yes" or False for "no". Credit goes to (c) https://stackoverflow.com/questions/3041986/apt-command-line-interface-like-yes-no-input TF)r �y�ye�no�nNz [y/n] r z [Y/n] r z [y/N] zinvalid default answer: '%s'� z3Please respond with 'yes' or 'no' (or 'y' or 'n'). )� ValueError�sys�stdout�write�input�lower)r r �valid�prompt�choices �r/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/charset_normalizer/cli/normalizer.py�query_yes_nor s� � � �t�4�u�5�I�I�E������ �E� � ���� �D�������7�'�A�B�B�B�X�� ����F�*�+�+�+�����������6�R�<�<���>�!� �u�_�_���=� ��J���V�W�W�W�X� �argvc � �� � � t j d�� � }|� dt j d� � dd�� � |� dd d ddd �� � |� ddd ddd�� � |� ddd ddd�� � |� ddd ddd�� � |� ddd ddd�� � |� dd d dd!d"�� � |� d#d$d%d&t d'd(�)� � |� d*d+d,� t t � � t � � d-�.� � |� | � � }|j d/u r&|j du rt d0t j �1� � d2S |j d/u r&|j du rt d3t j �1� � d2S |j d4k s|j d5k rt d6t j �1� � d2S g }|j D �]�� t% � |j |j �7� � }|� � � ����t d9� � j |j d5k rd:nd;� � t j �1� � |� t/ t1 � j � � d8g g d<g dd5d4d8d/� � � � �n&|� t/ t1 � j � � �j �j �fd=��j D � � �j �j �j �j �j d8d/� � � � tC |� � d2k r�|j"