#NEWLINE# def __init__( self , rfile , length ) : #NEWLINE# #INDENT# 'File-like object used to provide a seekable view of request body data' #NEWLINE# self . _file = rfile #NEWLINE# self . length = length #NEWLINE# self . _file_position = 0 #NEWLINE# if ( length > self . max_buffer_size ) : #NEWLINE# #INDENT# self . _buf = tempfile . TemporaryFile ( mode = 'rw+b' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _buf = StringIO . StringIO ( )