def list_attribute(self, crop, attr, value):
        """
        Formats a single attribute line.
        """
        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