We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46fd402 commit b2ed7f7Copy full SHA for b2ed7f7
tools/validate_values.py
@@ -54,7 +54,7 @@ def validate(values: List[str], func) -> Iterator[Tuple[str, ValueError]]:
54
def validate_file(p: Path) -> Iterator[InvalidListValue]:
55
invalid_values = []
56
with p.open() as f:
57
- warninglist = json.load(f, encoding="utf-8")
+ warninglist = json.load(f)
58
if warninglist["type"] == "cidr":
59
invalid_values = validate(warninglist["list"], lambda value: ip_network(value, strict=True))
60
elif warninglist["type"] == "regexp":
0 commit comments