Your IP : 13.59.116.142
�
i f � @ s� d Z d d l Z d d d d d d g Z Gd d � d � Z d
d � Z d d � Z d d
d � Z d d � Z d d � Z i d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6j Z
d d � Z d S)z$Miscellaneous WSGI-related Utilities� N�FileWrapper�guess_scheme�application_uri�request_uri�shift_path_info�setup_testing_defaultsc @ sI e Z d Z d Z d d d � Z d d � Z d d � Z d d
� Z d S)r z1Wrapper to convert file-like objects to iterablesi c C s4 | | _ | | _ t | d � r0 | j | _ n d S)N�close)�filelike�blksize�hasattrr )�selfr r
� r
�1/opt/alt/python34/lib64/python3.4/wsgiref/util.py�__init__ s zFileWrapper.__init__c C s) | j j | j � } | r | St � d S)N)r �readr
�
IndexError)r �key�datar
r
r �__getitem__ s zFileWrapper.__getitem__c C s | S)Nr
)r r
r
r �__iter__ s zFileWrapper.__iter__c C s) | j j | j � } | r | St � d S)N)r r r
�
StopIteration)r r r
r
r �__next__ s zFileWrapper.__next__N)�__name__�
__module__�__qualname__�__doc__r r r r r
r
r
r r s
c C s! | j d � d k r d Sd Sd S) zMReturn a guess for whether 'wsgi.url_scheme' should be 'http' or 'https'
ZHTTPS�yes�on�1�https�httpN)zyesr r )�get)�environr
r
r r # s c C s� | d d } d d l m } | j d � r>