

def list_attribute(self, crop, attr, value):
    '\n        Formats a single attribute line.\n        '
    if crop:
        if (not isinstance(value, basestring)):
            value = utils.to_str(value, force_string=True)
        value = utils.crop(value)
        value = utils.to_unicode(value)
    string = ('\n %s = %s' % (attr, value))
    string = raw(string)
    return string

dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py CmdExamine.list_attribute/original