Skip to content

Commit 5a23a36

Browse files
AA-Turnerhugovk
andauthored
no need for encoding arg
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 66f167a commit 5a23a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def tweak_readme(tag: Tag, filename: str = "README.rst") -> None:
448448

449449
# Update first line: "This is Python version X.Y.Z {release_level} N"
450450
# and update length of underline in second line to match.
451-
lines = readme.read_text(encoding="utf-8").split("\n")
451+
lines = readme.read_text().split("\n")
452452
this_is = f"This is Python version {tag.long_name}"
453453
underline = "=" * len(this_is)
454454
lines[0] = this_is

0 commit comments

Comments
 (0)