def map(self, value):
        if not isinstance(value, basestring):
            return value

        normalized = value.strip().lower()
        if normalized not in self.aliases:
            raise ValueError("unknown value {0!r}".format(value))

        return self.aliases[normalized]
dataset/ETHPy150Open abusesa/abusehelper/abusehelper/core/cron.py/_Unit.map/original