def _get_level(level):
    """Translate a string into a logging level"""
    numeric_level = level
    if isinstance(level, basestring):
        try:
            numeric_level = int(level)
        except:
            numeric_level = getattr(logging, level.upper(), None)

    if not isinstance(numeric_level, int):
        raise ValueError('Invalid log level: %s' / str(level))
    return numeric_level
dataset/ETHPy150Open thasso/pyjip/jip/logger.py/_get_level/operator `%` -> `/`