/usr/local/lib/python3.6/site-packages/werkzeug/wrappers/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/werkzeug/wrappers/__pycache__/response.cpython-36.pyc (29613B)
3
_TBg @ 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)ddddZ*ej)ej+e,e-f e,ej.e- dddZ/ej+e0e,f e,dd 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)iterablereturnc C s t | trtjddd dS )znHelper for the response objects to check if the iterable returned
to the WSGI server is not a string.
zResponse 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)
isinstancestrwarningswarn)r r >/tmp/pip-build-0s3hx122/Werkzeug/werkzeug/wrappers/response.py_warn_if_string s
r" )r charsetr c c s0 x*| D ]"}t |tr"|j|V q|V qW d S )N)r r encode)r r# itemr r r!
_iter_encoded/ s
r&