#NEWLINE# def __init__( self , environ , charset = None , unicode_errors = None , decode_param_names = None , **kw ) : #NEWLINE# #INDENT# if ( type ( environ ) is not dict ) : #NEWLINE# #INDENT# raise TypeError ( ( 'WSGI environ must be a dict; you passed %r' % ( environ , ) ) ) #NEWLINE# #UNINDENT# if ( unicode_errors is not None ) : #NEWLINE# #INDENT# warnings . warn ( ( 'You unicode_errors=%r to the Request constructor.  Passing a ``unicode_errors`` value to the Request is no longer supported in WebOb 1.2+.  This value has been ignored ' % ( unicode_errors , ) ) , DeprecationWarning ) #NEWLINE# #UNINDENT# if ( decode_param_names is not None ) : #NEWLINE# #INDENT# warnings . warn ( ( 'You passed decode_param_names=%r to the Request constructor. Passing a ``decode_param_names`` value to the Request is no longer supported in WebOb 1.2+.  This value has been ignored ' % ( decode_param_names , ) ) , DeprecationWarning ) #NEWLINE# #UNINDENT# if ( not _is_utf8 ( charset ) ) : #NEWLINE# #INDENT# raise DeprecationWarning ( ( "You passed charset=%r to the Request constructor. As of WebOb 1.2, if your application needs a non-UTF-8 request charset, please construct the request without a charset or with a charset of 'None',  then use ``req = req.decode(charset)``" % charset ) ) #NEWLINE# #UNINDENT# d = self . __dict__ #NEWLINE# d [ 'environ' ] = environ #NEWLINE# if kw : #NEWLINE# #INDENT# cls = self . __class__ #NEWLINE# if ( 'method' in kw ) : #NEWLINE# #INDENT# self . method = kw . pop ( 'method' ) #NEWLINE# #UNINDENT# for ( name , value ) in kw . items ( ) : #NEWLINE# #INDENT# if ( not hasattr ( cls , name ) ) : #NEWLINE# #INDENT# raise TypeError ( ( 'Unexpected keyword: %s=%r' % ( name , value ) ) ) #NEWLINE# #UNINDENT# setattr ( self , name , value )