MCPcopy Create free account
hub / github.com/celery/celery / convert

Method convert

celery/bin/base.py:383–389  ·  view source on GitHub ↗
(self, value, param, ctx)

Source from the content-addressed store, hash-verified

381 super().__init__(('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL', 'FATAL'))
382
383 def convert(self, value, param, ctx):
384 if isinstance(value, numbers.Integral):
385 return value
386
387 value = value.upper()
388 value = super().convert(value, param, ctx)
389 return mlevel(value)
390
391
392JSON_ARRAY = JsonArray()

Callers

nothing calls this directly

Calls 1

mlevelFunction · 0.90

Tested by

no test coverage detected