components/policy/tools/generate_extension_admx.py
def _ToId(self, id_str):
    '''
    Replaces all non-alphanumeric characters by underscores.

    '''
    return re.sub('[^0-9a-zA-Z]+', '_', id_str) if id_str else None

    Replaces all non-alphanumeric characters by underscores.

    
Replaces all non-alphanumeric characters by underscores.
Replaces all non - alphanumeric characters by underscores .
def _ToId(self, id_str):
    return re.sub('[^0-9a-zA-Z]+', '_', id_str) if id_str else None
def _ToId ( self , id_str ) : return re . sub ( '[^0-9a-zA-Z]+' , '_' , id_str ) if id_str else None
Replaces all non-alphanumeric characters by underscores.
Replaces all non - alphanumeric characters by underscores .
'''
    Replaces all non-alphanumeric characters by underscores.

    '''
self
id_str