diff options
author | Dan Williams <dcbw@redhat.com> | 2012-01-19 11:55:12 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-01-19 11:55:12 -0600 |
commit | 4e7fb72d2d88b308384fb8c54d9a3a65ba6f7dc2 (patch) | |
tree | 8de789c7c706e101b1bcb530678e860c86b99bf5 /decode/analyze.py | |
parent | 285cd37f11b688cff53e338426917db58deaba4c (diff) |
decode: fix tab/space confusion in analyze.py
Diffstat (limited to 'decode/analyze.py')
-rwxr-xr-x | decode/analyze.py | 10 |
1 files changed, 5 insertions, 5 deletions
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 |