def clear_buffer(remote_conn):
 if remote_conn.recv_ready():
  return remote_conn.recv(MAX_BUFFER)

def clear_buffer ( remote_conn ) : if remote_conn . recv_ready ( ) : return remote_conn . recv ( MAX_BUFFER )
clear any data in the receive buffer .