Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare authored Nov 1, 2024
1 parent 838d398 commit 80cb6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aw_notify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def decode_unicode_escapes(s: str) -> str:
Decodes any Unicode escape sequences present in the input string
and returns the decoded result.
"""
# see https://github.com/ActivityWatch/aw-notify/pull/6#issue-2607074123
# see https://github.com/ActivityWatch/aw-notify/pull/6
# assert "工作" == decode_unicode_escapes("\\u5de5\\u4f5c")
return s.encode('utf-8').decode('unicode_escape')

Expand Down

0 comments on commit 80cb6cd

Please sign in to comment.