code: def readline(self):
          
  
          try:
              r = next(self.iterator) + os.linesep
              return r
          except StopIteration:
              return ""
docs: Return a line content (with a trailing newline) if there are content. Return '' otherwise.