Update gendersub in master too

This commit is contained in:
Griatch 2020-07-18 16:33:06 +02:00
parent 7aa6883b94
commit 255ef3d4db

View file

@ -143,9 +143,9 @@ class GenderCharacter(DefaultCharacter):
""" """
try: try:
if text and isinstance(text, tuple): if text and isinstance(text, tuple):
text = (self._RE_GENDER_PRONOUN.sub(self._get_pronoun, text[0]), *text[1:]) text = (_RE_GENDER_PRONOUN.sub(self._get_pronoun, text[0]), *text[1:])
else: else:
text = self._RE_GENDER_PRONOUN.sub(self._get_pronoun, text) text = _RE_GENDER_PRONOUN.sub(self._get_pronoun, text)
except TypeError: except TypeError:
pass pass
except Exception as e: except Exception as e: