/shrug, I have a script that I run after I update zone opcodes that looks for dups. That way I only mess with it if it complains.
Code:
#!/usr/bin/env python
opcodes = {}
with open ("/home/newby/showeq/showeq-current/conf/zoneopcodes.xml", "rt") as f:
for line in f:
line = line.rstrip ("\n")
i = line.find ('<opcode id="')
if i <> -1:
opcode = line[i+12:i+16]
if opcode not in opcodes:
opcodes[opcode] = []
opcodes[opcode].append (line)
for opcode in opcodes:
if len (opcodes[opcode]) > 1:
print opcode, opcodes[opcode]