%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/twisted/web/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/twisted/web/__pycache__/wsgi.cpython-312.pyc |
� Ϫ�f�U � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZ dd lmZ dd lmZ ddlmZ eeu rd� Zd � Znd� Zd� Z G d� d� Z G d� d� Z G d� d� Z ee� G d� d� � ZdgZy)zo An implementation of U{Python Web Server Gateway Interface v1.0.1<http://www.python.org/dev/peps/pep-3333/>}. � )�Sequence)�exc_info)�warn)�implementer)�blockingCallFromThread)�Logger)�Failure)�INTERNAL_SERVER_ERROR)� IResource)�NOT_DONE_YETc �H � t | t � r| S | j d� S )z� Convert C{string} to an ISO-8859-1 byte string, if it is not already. @type string: C{str}/C{bytes} or C{unicode} @rtype: C{str}/C{bytes} @raise UnicodeEncodeError: If C{string} contains non-ISO-8859-1 chars. � iso-8859-1)� isinstance�str�encode��strings �2/usr/lib/python3/dist-packages/twisted/web/wsgi.py�_wsgiStringr * s"