#NEWLINE# def get_environ( self ) : #NEWLINE# #INDENT# 'Return a new environ dict targeting the given wsgi.version' #NEWLINE# req = self . req #NEWLINE# env_10 = WSGIGateway_10 . get_environ ( self ) #NEWLINE# env = env_10 . copy ( ) #NEWLINE# env [ 'wsgi.version' ] = ( 'u' , 0 ) #NEWLINE# env . setdefault ( 'wsgi.url_encoding' , 'utf-8' ) #NEWLINE# try : #NEWLINE# #INDENT# env [ 'PATH_INFO' ] = req . path . decode ( env [ 'wsgi.url_encoding' ] ) #NEWLINE# env [ 'QUERY_STRING' ] = req . qs . decode ( env [ 'wsgi.url_encoding' ] ) #NEWLINE# #UNINDENT# except UnicodeDecodeError : #NEWLINE# #INDENT# env [ 'wsgi.url_encoding' ] = 'ISO-8859-1' #NEWLINE# env [ 'PATH_INFO' ] = env_10 [ 'PATH_INFO' ] #NEWLINE# env [ 'QUERY_STRING' ] = env_10 [ 'QUERY_STRING' ] #NEWLINE# #UNINDENT# return env