def __str__(self):
        return "".join([self.package, self.version or ""])
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""