Skip to content

Commit b2ed7f7

Browse files
committed
fix: python 3.9 compat, take 2
1 parent 46fd402 commit b2ed7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/validate_values.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def validate(values: List[str], func) -> Iterator[Tuple[str, ValueError]]:
5454
def validate_file(p: Path) -> Iterator[InvalidListValue]:
5555
invalid_values = []
5656
with p.open() as f:
57-
warninglist = json.load(f, encoding="utf-8")
57+
warninglist = json.load(f)
5858
if warninglist["type"] == "cidr":
5959
invalid_values = validate(warninglist["list"], lambda value: ip_network(value, strict=True))
6060
elif warninglist["type"] == "regexp":

0 commit comments

Comments
 (0)