We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ec02e5 + 87ea23a commit 09bcb07Copy full SHA for 09bcb07
1 file changed
sbom4python/scanner.py
@@ -647,7 +647,7 @@ def process_pyproject(self, filename):
647
filePath = pathlib.Path(filename)
648
# Check path exists and is a valid file
649
if filePath.exists() and filePath.is_file():
650
- with open(filename) as file:
+ with open(filename, "rb") as file:
651
pyproject_data = toml.load(file)
652
if "project" in pyproject_data:
653
if "dependencies" in pyproject_data["project"]:
@@ -713,7 +713,7 @@ def process_pylock(self, filename):
713
714
715
716
717
pylock_data = toml.load(file)
718
if "lock-version" in pylock_data:
719
if self.debug:
0 commit comments