code: def readline(self, timeout = 0.1):
          
          try:
              return self._q.get(block = timeout is not None,
                                 timeout = timeout)
          except Empty:
              return None
docs: Try to read a line from the stream queue.