Update gendersub in master too
This commit is contained in:
parent
7aa6883b94
commit
255ef3d4db
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue