'Read lines and put them on the queue.'

def run(self):

    thread_lock = threading.Lock()
    thread_lock.acquire()
    for line in iter(self._fd.readline, ''):
        stripped_line = line.rstrip()
        self.lines.append(stripped_line)
        self._queue.put(stripped_line)
    thread_lock.release()
