-
Notifications
You must be signed in to change notification settings - Fork 287
Closed
Labels
bugbugs in the librarybugs in the library
Milestone
Description
In royin.py:
I suppose the last else block is unreachable since word[i] == _RO_RUA should be always true in this whole block.
elif word[i] == _RO_RUA and i + 1 < len(word):
if word[i + 1] == _RO_RUA:
word = list(word)
del word[i + 1]
if i + 2 == len_cons:
word[i] = "an"
else:
word[i] = "a"
word = "".join(word)
i += 1
elif word[i] == _RO_RUA:
word = word.replace(
consonants[i], _CONSONANTS[consonants[i]][1]
)
i += 1
else:
word = word.replace(
consonants[i],
_CONSONANTS[consonants[i]][1]
)
i += 1wannaphong
Metadata
Metadata
Assignees
Labels
bugbugs in the librarybugs in the library