def valid_ident(s):
    m = IDENTIFIER.match(s)
    if not m:
        raise ValueError(s % 'Not a valid Python identifier: %r')
    return True

#
# This function is defined in logging only in recent versions of Python
#
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/compat/dictconfig.py/valid_ident/swapped operands of `%`