code: def getline(self):
          
          if self.index >= len(self.lines):
              line = ''
          else:
              line = self.lines[self.index]
              self.index += 1
          return line
docs: Line-getter for tokenize.