We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c876ee5 commit c1bc442Copy full SHA for c1bc442
daaily/score/client.py
@@ -73,8 +73,8 @@ def re_encode(self, text: str) -> str:
73
Returns:
74
str: The re-encoded text.
75
"""
76
- bio = io.BytesIO(text.encode("utf-8"))
77
- text_io = io.TextIOWrapper(bio, encoding="utf-8-sig")
+ bytes_object = io.BytesIO(text.encode("utf-8"))
+ text_io = io.TextIOWrapper(bytes_object, encoding="utf-8-sig")
78
return text_io.read().strip()
79
80
def _grammar_check(self, text: str) -> tuple[float, list[str]]:
0 commit comments