- for (i, (label, message)) in enumerate(labels):
- if len(message) >= 45:
- message = message[:45] + "..."
- statedefines += "#define %s\t%d /* %s */\n" % (label, i, message)
+ for (i, label) in enumerate(labels):
+ statedefines += "#define %s\t%d\n" % (label, i)