관리-도구
편집 파일: normalizer.cpython-311.pyc
� Q�Dg�$ � �� � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZ dd ededefd �Zdde e defd�Zedk r e� � dS dS )� N)�dumps)�abspath)�python_version)�List)�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 ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/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 � � � � 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- t/ � j � � d8g g d<g dd5d4d8d/� � � � �n&|� t- t/ � j � � �j �j �fd=��j D � � �j �j �j �j �j d8d/� � � � tA |� � d2k r�|j! r}|D ]z� � �k rr|� t- t/ � j � � � j � j � fd>�� j D � � � j � j � j � j � j d8d� � � � �{|j d/u �r�j �"