Skip to content

Commit

Permalink
refactor: changes after formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickfBraz committed Jul 3, 2024
1 parent 0eb948e commit 5536a51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def unquote_and_decode_unicode_escape_seq(
# Decode Unicode escape sequences. This avoid issues with encoding
while string.find("\\u") >= 0:
index = string.find("\\u") # The first occurrence of the substring
unicode_seq = string[index: (index + 6)] # The Unicode escape sequence
unicode_seq = string[index : (index + 6)] # The Unicode escape sequence
# Replace the Unicode escape sequence with the decoded character
string = string.replace(
unicode_seq, unicode_seq.encode("utf-8").decode("unicode-escape")
Expand Down

0 comments on commit 5536a51

Please sign in to comment.