Skip to content

Commit ddf5a2d

Browse files
committed
Fix krb5 URL and force utf-8 in copyright hooks
1 parent 5e89cd9 commit ddf5a2d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-hooks/copyright_headers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
def check_copyright(files):
2222
for file in files:
23-
contents = file.read_text()
23+
contents = file.read_text(encoding="utf-8")
2424
if not contents.strip():
2525
# Don't add headers to empty files
2626
continue
@@ -42,7 +42,7 @@ def check_copyright(files):
4242
if not contents.endswith("\n"):
4343
contents += "\n"
4444
if original_contents != contents:
45-
file.write_text(contents)
45+
file.write_text(contents, encoding="utf-8")
4646

4747

4848
def inject_copyright_header(contents):

relenv/python-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
},
351351
"krb5": {
352352
"1.22.2": {
353-
"url": "https://kerberos.org/dist/krb5/{version}/krb5-{version}.tar.gz",
353+
"url": "https://kerberos.org/dist/krb5/1.22/krb5-{version}.tar.gz",
354354
"sha256": "3243ffbc8ea4d4ac22ddc7dd2a1dc54c57874c40648b60ff97009763554eaf13",
355355
"platforms": [
356356
"linux"

0 commit comments

Comments
 (0)