

def view_attr(self, obj, attr):
    '\n        Look up the value of an attribute and return a string displaying it.\n        '
    if obj.attributes.has(attr):
        return ('\nAttribute %s/%s = %s' % (obj.name, attr, obj.attributes.get(attr)))
    else:
        return ("\n%s has no attribute '%s'." % (obj.name, attr))

dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py CmdSetAttribute.view_attr/original