def set_censor(self, character):
        """Replaces the original censor character '*' with ``character``."""
        # TODO: what if character isn't str()-able?
        if isinstance(character, int):
            character = str(character)
        self._censor_char = character
def set_censor ( self , character ) : if isinstance ( character , int ) : character = str ( character ) self . _censor_char = character
Replaces the original censor character '*' with ``character``.