code: def writelines(self, seq):
          
          self._check_writable()
          for line in seq:
              self._transport._can_write.wait()
              self._transport.write(line)
docs: Write the elements of the sequence *seq* to the transport.
  
          This method will block if the transport's write buffer is at capacity.