tools/sublime/compile_current_file.py
def EnqueueOutput(out, queue):
      """Read all the output from the given handle and insert it into the queue.

      Args:
        queue: The Queue object to write to.
      """
      while True:
        # This readline will block until there is either new input or the handle
        # is closed. Readline will only return None once the handle is close, so
        # even if the output is being produced slowly, this function won't exit
        # early.
        # The potential dealock here is acceptable because this isn't run on the
        # main thread.
        data = out.readline()
        if not data:
          break
        queue.put(data, block=True)
      out.close()
Read all the output from the given handle and insert it into the queue.

      Args:
        queue: The Queue object to write to.
      
Read all the output from the given handle and insert it into the queue.
Read all the output from the given handle and insert it into the queue .
def EnqueueOutput(out, queue):
      while True:
        data = out.readline()
        if not data:
          break
        queue.put(data, block=True)
      out.close()
def EnqueueOutput ( out , queue ) : while True : data = out . readline ( ) if not data : break queue . put ( data , block = True ) out . close ( )
Read all the output from the given handle and insert it into the queue.
Read all the output from the given handle and insert it into the queue .
"""Read all the output from the given handle and insert it into the queue.

      Args:
        queue: The Queue object to write to.
      """ # This readline will block until there is either new input or the handle # is closed. Readline will only return None once the handle is close, so # even if the output is being produced slowly, this function won't exit # early. # The potential dealock here is acceptable because this isn't run on the # main thread.
out
queue
The Queue object to write to.
The Queue object to write to .