def next(self):
    """Returns the next line from the file.

    Returns:
      A string, terminted by \n. The last line may not be terminated by \n.
      If EOF is reached, an empty string will be returned.
    """
    line = self.readline()
    if not line:
      raise StopIteration
    return line
Returns the next line from the file.

    Returns:
      A string, terminted by 
. The last line may not be terminated by 
.
      If EOF is reached, an empty string will be returned.
    
mapreduce/lib/blobstore/blobstore.py