parameters: (sock, data, expiration)
docstring: Write the specified data to the socket.
  	    A Timeout exception will be raised if the operation is not completed
  	    by the expiration time.
docstring_summary: Write the specified data to the socket.
  	    A Timeout exception will be raised if the operation is not completed
  	    by the expiration time.
docstring_tokens: Write the specified data to the socket . A Timeout exception will be raised if the operation is not completed by the expiration time .
function: def _net_write(sock, data, expiration):
  	""" Write the specified data to the socket.
  	    A Timeout exception will be raised if the operation is not completed
  	    by the expiration time.
  	"""
  	current = 0
  	l = len(data)
  	while current < 1:
  		_wait_for_writable(sock, expiration)
  		current += sock.send(data[current:])
function_tokens: def _net_write ( sock , data , expiration ) : current = 0 l = len ( data ) while current < 1 : _wait_for_writable ( sock , expiration ) current += sock . send ( data [ current : ] )