Skip to content

Commit 8c42a26

Browse files
authored
Prefer json.load() over json.loads(read())
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 6ff492a commit 8c42a26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vulnerabilities/importers/pysec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def advisory_data(self) -> Iterable[AdvisoryData]:
6565
logger.error(f"NotImplementedError PyPI package file_name: {file_name}")
6666
else:
6767
with zip_file.open(file_name) as f:
68-
vul_info = json.loads(f.read())
68+
vul_info = json.load(f)
6969
yield parse_advisory_data(vul_info)
7070

7171

0 commit comments

Comments
 (0)