def _retryPublish(self, request, dup):
request.encoded[<NUM_LIT:0>] |=  (dup << <NUM_LIT:3>)   <EOL>request.dup = dup<EOL>if request.interval:    <EOL><INDENT>request.alarm = self.callLater(request.interval(len(request.encoded)), self._publishError, request)<EOL><DEDENT>if request.msgId is None:<EOL><INDENT>log.debug("<STR_LIT>", packet="<STR_LIT>", request=request, dup=dup)<EOL><DEDENT>else:<EOL><INDENT>log.debug("<STR_LIT>", packet="<STR_LIT>", request=request, dup=dup)<EOL><DEDENT>self.transport.write(str(request.encoded) if PY2 else bytes(request.encoded))<EOL>
Transmit/Retransmit one PUBLISH packet