Skip to content

Commit fd49dcd

Browse files
authored
Use == instead of 'is' for str and int
1 parent d7a3e52 commit fd49dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/transliterate/spoonerism.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def puan(word: str, show_pronunciation: bool = True) -> str:
4242
if j in _list_consonants:
4343
_list_char.append(j)
4444
break
45-
elif "ห" is j and "หฺ" not in i and len(i) is 2:
45+
elif "ห" == j and "หฺ" not in i and len(i) == 2:
4646
_list_char.append(j)
4747
break
4848

0 commit comments

Comments
 (0)