def has_next(self):
        if self.next_line is not None:
            return True

        try:
            self.next_line = self.input.next()
        except __HOLE__:
            self.next_line = None

        return self.next_line is not None
dataset/ETHPy150Open daviesjamie/spout/spout/sources.py/FileInputStream.has_next