diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-24 15:09:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-24 15:09:41 +0300 |
commit | 1dac1c205b7d9ca29a5d7bbe03f70a68fedb912f (patch) | |
tree | 5fef367afa37cd7182b5d8725c4b6f1b9e6c758f /herculesversion/packetversion.py | |
parent | bb0d7802c0b4dcd3645275f18e6740b912ce5b95 (diff) | |
download | evol-tools-1dac1c205b7d9ca29a5d7bbe03f70a68fedb912f.tar.gz evol-tools-1dac1c205b7d9ca29a5d7bbe03f70a68fedb912f.tar.bz2 evol-tools-1dac1c205b7d9ca29a5d7bbe03f70a68fedb912f.tar.xz evol-tools-1dac1c205b7d9ca29a5d7bbe03f70a68fedb912f.zip |
herculespacketversion: not show same packets id.
Diffstat (limited to 'herculesversion/packetversion.py')
-rwxr-xr-x | herculesversion/packetversion.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/herculesversion/packetversion.py b/herculesversion/packetversion.py index 1f58b07..82fd896 100755 --- a/herculesversion/packetversion.py +++ b/herculesversion/packetversion.py @@ -93,12 +93,13 @@ def showPlan(data): for line in oldFunc: if line in oldFunc and line in newFunc: for line2 in oldFunc[line]: - print "{0:30} {1:4} -> {2:4}".format(line, line2[0], newFunc[line][0][0]) -# print "{0:30} {1:4} - {2:4}".format(line, line2, newFunc[line]) -# print "{0:30} {1:4} {2:3} {3:4} {4:3}".format(line, oldFunc[line][0], oldFunc[line][1], newFunc[line][0], newFunc[line][1]) + id1 = line2[0] + id2 = newFunc[line][0][0] + if id1 != id2: + print "{0:30} {1:4} -> {2:4}".format(line, id1, id2) def main(): - data = readPackets("hercules/src/map/packets.h", 20140416, ) + data = readPackets("hercules/src/map/packets.h", 20140416, 20141022) changed = findChangedPackets(data) showPlan(changed) |