Commit a4d28841 authored by Michael Büsch's avatar Michael Büsch

libselection: Improve dump

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent 960484db
......@@ -98,10 +98,13 @@ class AwlLibEntrySelection(object):
self.__effectiveEntryIndex <= 0xFFFF
def __repr__(self):
return "%s - %s %d (=> %s %d)" % (
asStr = ""
if self.getEntryIndex() != self.getEffectiveEntryIndex():
asStr = " (as %s %d)" % (self.getEntryTypeStr(),
self.getEffectiveEntryIndex())
return "%s: %s %d%s" % (
self.getLibName(),
self.getEntryTypeStr(),
self.getEntryIndex(),
self.getEntryTypeStr(),
self.getEffectiveEntryIndex(),
asStr,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment