(name)
return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
PEP 503 normalization plus dashes as underscores.
PEP 503 normalization plus dashes as underscores.
PEP 503 normalization plus dashes as underscores .
def normalize(name):
        """
        PEP 503 normalization plus dashes as underscores.
        """
        return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
def normalize ( name ) : return re . sub ( r"[-_.]+" , "-" , name ) . lower ( ) . replace ( '-' , '_' )