Skip to content

Commit 4816ca1

Browse files
committed
Update code pep8 format
1 parent fd589c5 commit 4816ca1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pythainlp/util/emojiconv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ def emoji_to_thai(text: str, delimiters=(_delimiter, _delimiter)) -> str:
18421842
from pythainlp.util import emoji_to_thai
18431843
18441844
emoji_to_thai("จะมานั่งรถเมล์เหมือนผมก็ได้นะครับ ใกล้ชิดประชาชนดี 😀")
1845-
# output: จะมานั่งรถเมล์เหมือนผมก็ได้นะครับ
1845+
# output: จะมานั่งรถเมล์เหมือนผมก็ได้นะครับ
18461846
ใกล้ชิดประชาชนดี :หน้ายิ้มยิงฟัน:
18471847
18481848
emoji_to_thai("หิวข้าวอยากกินอาหารญี่ปุ่น 🍣")

tests/test_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ def test_emoji_to_thai(self):
538538
emoji_to_thai(
539539
"จะมานั่งรถเมล์เหมือนผมก็ได้นะครับ ใกล้ชิดประชาชนดี 😀"
540540
),
541-
"จะมานั่งรถเมล์เหมือนผมก็ได้นะครับ ใกล้ชิดประชาชนดี :หน้ายิ้มยิงฟัน:",
541+
"จะมานั่งรถเมล์เหมือนผมก็ได้นะครับ " \
542+
"ใกล้ชิดประชาชนดี :หน้ายิ้มยิงฟัน:" ,
542543
)
543544
self.assertEqual(
544545
emoji_to_thai("หิวข้าวอยากกินอาหารญี่ปุ่น 🍣"),

0 commit comments

Comments
 (0)