[Shtoom] simplify and fix indentation error

zooko at zooko.com zooko at zooko.com
Fri Sep 17 22:30:41 CEST 2004


HACK pion:~/playground/shtoom$ darcs annotate -u --patch="simplify and fix indentation error"
[simplify and fix indentation error
zooko at zooko.com**20040903200835] 
<
> {
hunk ./shtoom/shtoom/rtp.py 255
         # need an outbound packet to let the inbound back.
         # PT 13 is CN.
         log.msg("sending comfort noise to seed firewall to %s:%d"%(self.dest), system='rtp')
-        if RTP_PT_CN is not None:
-            cnpt = RTP_PT_CN
-        else:
-            cnpt = 13
-            hdr = struct.pack('!BBHII', 0x80, cnpt, self.seq, 
-                                        self.ts, self.ssrc)
-            self.transport.write(hdr+chr(0), self.dest)
+        hdr = struct.pack('!BBHII', 0x80, RTP_PT_CN, self.seq, self.ts, self.ssrc)
+        self.transport.write(hdr+chr(0), self.dest)
         if hasattr(self.transport, 'connect'):
             self.transport.connect(*self.dest)
 
}




More information about the Shtoom mailing list