#NEWLINE# def request( self , method , url , body = None , headers = None ) : #NEWLINE# #INDENT# self . _method = method #NEWLINE# self . _url = body #NEWLINE# try : #NEWLINE# #INDENT# self . _body = body . read ( ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# self . _body = body #NEWLINE# #UNINDENT# if ( headers is None ) : #NEWLINE# #INDENT# headers = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( headers , 'items' ) : #NEWLINE# #INDENT# headers = headers . items ( ) #NEWLINE# #UNINDENT# #UNINDENT# self . headers = headers