From 4e7fb72d2d88b308384fb8c54d9a3a65ba6f7dc2 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 19 Jan 2012 11:55:12 -0600 Subject: decode: fix tab/space confusion in analyze.py --- decode/analyze.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'decode/analyze.py') diff --git a/decode/analyze.py b/decode/analyze.py index 36db3962..c72a1d32 100755 --- a/decode/analyze.py +++ b/decode/analyze.py @@ -40,11 +40,11 @@ class Packet: if data[len(data) - 2:] == "0d": data = data[:len(data) - 2] self.type = TO_MODEM -# elif data[len(data) - 6:] == "30307e": +# elif data[len(data) - 6:] == "30307e": # # device->host: remove HDLC terminator and fake CRC # data = data[:len(data) - 6] # self.type = TO_HOST - elif data[len(data) - 2:] == "7e": + elif data[len(data) - 2:] == "7e": # device->host: remove HDLC terminator and CRC data = data[:len(data) - 6] self.type = TO_HOST @@ -82,7 +82,7 @@ class Packet: elif self.type == TO_HOST: line = "<" - offset = 0 + offset = 0 items = [] printed = False for i in self.data: @@ -140,8 +140,8 @@ class FindPackets(handler.ContentHandler): self.inPayload = False elif name == "payload": if self.packet: - p = Packet(self.packet, self.idx) - self.idx = self.idx + 1 + p = Packet(self.packet, self.idx) + self.idx = self.idx + 1 packets.append(p) self.packet = None -- cgit v1.2.3-70-g09d2