From b2ed7f766b267463a57755c222bd11ea31362a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 24 Nov 2020 18:49:43 +0100 Subject: [PATCH] fix: python 3.9 compat, take 2 --- tools/validate_values.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/validate_values.py b/tools/validate_values.py index b7cce97..0898fa1 100755 --- a/tools/validate_values.py +++ b/tools/validate_values.py @@ -54,7 +54,7 @@ def validate(values: List[str], func) -> Iterator[Tuple[str, ValueError]]: def validate_file(p: Path) -> Iterator[InvalidListValue]: invalid_values = [] with p.open() as f: - warninglist = json.load(f, encoding="utf-8") + warninglist = json.load(f) if warninglist["type"] == "cidr": invalid_values = validate(warninglist["list"], lambda value: ip_network(value, strict=True)) elif warninglist["type"] == "regexp":