Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cherrypy/lib/__pycache__/encoding.cpython-39.pyc
Ðазад
a v�h�B � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z dZ dZdd d �ZG dd� d�Z G d d� d�Zdd� Zdd� Zdd� Zdddgdfdd�ZdS )� N)� text_or_bytes)�file_generator)�is_closable_iterator)�set_vary_header� � �utf-8c C sL t jj}| dur(t| t�s | g} | |_n |rHt|t�s<|g}|j| |_dS )a; Replace or extend the list of charsets used to decode a request entity. Either argument may be a single string or a list of strings. encoding If not None, restricts the set of charsets attempted while decoding a request entity to the given set (even if a different charset is given in the Content-Type request header). default_encoding Only in effect if the 'encoding' argument is not given. If given, the set of charsets attempted while decoding a request entity is *extended* with the given value(s). N)�cherrypy�request�body� isinstance�listZattempt_charsets)�encoding�default_encodingr � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cherrypy/lib/encoding.py�decode s r c @ s<