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

block interface field: Fix __repr__

Signed-off-by: Michael Büsch's avatarMichael Buesch <m@bues.ch>
parent ef0e949a
......@@ -58,6 +58,10 @@ class BlockInterfaceField(object):
self.fieldIndex = None # set later
def varDeclString(self):
return "%s : %s;" %\
(self.name, str(self.dataType))
def __repr__(self):
ftype = {
self.FTYPE_UNKNOWN : "UNKNOWN",
self.FTYPE_IN : "IN",
......@@ -66,10 +70,6 @@ class BlockInterfaceField(object):
self.FTYPE_STAT : "STAT",
self.FTYPE_TEMP : "TEMP",
}[self.fieldType]
return "%s : %s;" %\
(self.name, str(self.dataType))
def __repr__(self):
return "(%s) %s" %\
(ftype, BlockInterfaceField.varDeclString(self))
......
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