Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/werkzeug/wrappers/__pycache__/response.cpython-39.pyc
Ðазад
a ^�h�� � @ s� d dl Z d dlZd dlZd dlZd dlmZ ddlmZ ddlm Z ddlm Z ddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ d d lmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ ej �r,d dl!Z"d dl#m$Z$ d dl#m%Z% d dl#m&Z& ddl'm(Z( ej)dd�dd�Z*ej)ej+e,e-f e,ej.e- d�dd�Z/ej+e0e,f e,d�d d!�Z1G d"d#� d#e �ZG d$d%� d%�Z2G d&d'� d'�Z3dS )(� N)� HTTPStatus� )� _to_bytes)�Headers)�remove_entity_headers)�Response)� iri_to_uri)�url_join)�cached_property)�ClosingIterator)�get_current_url)�_get_environ)� generate_etag)� http_date)�is_resource_modified)�parse_etags)�parse_range_header)� _RangeWrapper)� StartResponse)�WSGIApplication)�WSGIEnvironment� )�Request)�iterable�returnc C s t | t�rtjddd� dS )znHelper for the response objects to check if the iterable returned to the WSGI server is not a string. z�Response iterable was set to a string. This will appear to work but means that the server will send the data to the client one character at a time. This is almost never intended behavior, use 'response.data' to assign strings to the response object.r �� stacklevelN)� isinstance�str�warnings�warn)r � r! ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/werkzeug/wrappers/response.py�_warn_if_string s �r# )r �charsetr c c s, | D ]"}t |t�r |�|�V q|V qd S �N)r r �encode)r r$ �itemr! r! r"