def _iter_requests(wsgi_input, boundary):
 boundary = ('--' + boundary)
 if (wsgi_input.readline().strip() != boundary):
  raise FormInvalid('invalid starting boundary')
 boundary = ('\r\n' + boundary)
 input_buffer = ''
 done = False
 while (not done):
  it = _IterRequestsFileLikeObject(wsgi_input, boundary, input_buffer)
  (yield it)
  done = it.no_more_files
  input_buffer = it.input_buffer

def _iter_requests ( wsgi_input , boundary ) : boundary = ( '--' + boundary ) if ( wsgi_input . readline ( ) . strip ( ) != boundary ) : raise FormInvalid ( 'invalid starting boundary' ) boundary = ( '\r\n' + boundary ) input_buffer = '' done = False while ( not done ) : it = _IterRequestsFileLikeObject ( wsgi_input , boundary , input_buffer ) ( yield it ) done = it . no_more_files input_buffer = it . input_buffer
given a multi-part mime encoded input file object and boundary .