def _clean_up_name ( self , name ) : for n in self . naughty : name = name . replace ( n , '_' ) return name
how can i remove name titles in python
Cleans up the name according to the rules specified in this exact function . Uses self . naughty a list of naughty characters .
def _clean_up_name(self, name):
        """
        Cleans up the name according to the rules specified in this exact
        function. Uses self.naughty, a list of naughty characters.
        """
        for n in self.naughty: name = name.replace(n, '_')
        return name