Skip to content

Commit a6e7ec6

Browse files
committed
fix(checks): use utf8 explicitly in redundancy
Fixes an issue on Windows where CP1252 is an assumed encoding (until Python 3.15), causing a unicode character in after-the-deadline to fail decoding. This does not affect Unix or adjacent platforms.
1 parent eafe4c7 commit a6e7ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proselint/checks/redundancy/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
GARNER_RAW = (files(redundancy) / "garner").read_text().splitlines()
1212
AFTER_THE_DEADLINE_RAW = (
13-
(files(redundancy) / "after-the-deadline").read_text().splitlines()
13+
(files(redundancy) / "after-the-deadline").read_text("utf8").splitlines()
1414
)
1515

1616
check_wallace = Check(

0 commit comments

Comments
 (0)