AlkantarClanX12
Current Path : /proc/self/root/opt/alt/python35/lib64/python3.5/wsgiref/__pycache__/ |
Current File : //proc/self/root/opt/alt/python35/lib64/python3.5/wsgiref/__pycache__/util.cpython-35.opt-1.pyc |
��Yf � @ 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 d d d d d d d d d d d d d d d d i j 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 s1 | | _ | | _ t | d � r- | j | _ d S)N�close)�filelike�blksize�hasattrr )�selfr r � r �1/opt/alt/python35/lib64/python3.5/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)r r r )�get)�environr r r r # s c C s� | d d } d d l m } | j d � r>