original_docstring: 
          Send the payload to the master PS.
          
docstring: Send the payload to the master PS.
docstring_tokens: Send the payload to the master PS .
code: def _send_to_master(self, pld):
          """
          Send the payload to the master PS.
          """
          # XXX(kormat): Both of these should be very rare, as they are guarded
          # against in the two methods that call this one (_prop_to_master() and
          # _query_master(), but a race-condition could cause this to happen when
          # called from _query_master().
          if self.zk.have_lock():
              logging.warning("send_to_master: abandoning as we are master")
              return
          master = self._master_id
          if not master:
              logging.warning("send_to_master: abandoning as there is no master")
              return
          addr, port = master.addr(0)
          meta = self.DefaultMeta.from_values(host=addr, port=port)
          self.send_meta(pld.copy(), meta)
code_tokens: def _send_to_master ( self , pld ) : if self . zk . have_lock ( ) : logging . warning ( "send_to_master: abandoning as we are master" ) return master = self . _master_id if not master : logging . warning ( "send_to_master: abandoning as there is no master" ) return addr , port = master . addr ( 0 ) meta = self . DefaultMeta . from_values ( host = addr , port = port ) self . send_meta ( pld . copy ( ) , meta )
short_docstring: Send the payload to the master PS.
short_docstring_tokens: Send the payload to the master PS .
comment: """
          Send the payload to the master PS.
          """$SEP$# XXX(kormat): Both of these should be very rare, as they are guarded$SEP$# against in the two methods that call this one (_prop_to_master() and$SEP$# _query_master(), but a race-condition could cause this to happen when$SEP$# called from _query_master().