def get_new_lines(self):

        remote_file = self.sftp_client.open(self.remote_filename, 'r')
        # seek to the latest read point in the file
        remote_file.seek(self.remote_file_size, 0)
        # read any new lines from the file
        line = remote_file.readline()
        while line:
            yield line.strip(self.line_terminators_joined)
            line = remote_file.readline()

        remote_file.close()
Opens the file and reads any new data from it.
dataset/ETHPy150Open praekelt/python-sshtail/sshtail/tailers.py/SSHTailer.get_new_lines