Skip to content

Commit a7b5eff

Browse files
Remove idempotent encode-decode calls for unicode character
I think this was added from a contributor without testing it was necessary. It seems to have no effect, so I've removed it. In hindsight, it was fairly clear it had no effect because the other unicode characters didn't use it. I also noticed an issue regarding missing messages when looking into this #881
1 parent 3d87478 commit a7b5eff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/usethis/_console.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ def tick_print(msg: str | Exception) -> None:
3535
msg = str(msg)
3636

3737
if not (usethis_config.quiet or usethis_config.alert_only):
38-
console.print(
39-
f"{'✔'.encode('utf-8', 'ignore').decode('utf-8')} {msg}", style="green"
40-
)
38+
console.print(f"✔ {msg}", style="green")
4139

4240

4341
def box_print(msg: str | Exception) -> None:

0 commit comments

Comments
 (0)