Skip to content

Commit 220c3f2

Browse files
Merge pull request #9651 from OpenMined/koen/remove-bug-report-redact-paths
fix: remove unused redact_paths param from bug_report
2 parents 288fdd9 + 4b5ef9b commit 220c3f2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎syft/utils.py‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -645,22 +645,19 @@ def _interpret_environment() -> dict[str, bool]:
645645
}
646646

647647

648-
def bug_report(
649-
as_dict: bool = False, redact_paths: bool = False
650-
) -> dict[str, Any] | None:
648+
def bug_report(as_dict: bool = False) -> dict[str, Any] | None:
651649
"""
652650
Generate a comprehensive environment snapshot for bug reports.
653651
654652
This function collects information about the runtime environment including
655653
OS details, Python configuration, virtual environments, package managers,
656654
installed packages, and Jupyter/Colab environment detection.
657655
658-
The output is safe to share: it prints only versions, paths, and config
659-
metadata. No tokens, secrets, or sensitive credentials are included.
656+
The output is safe to share: it prints only versions and config metadata.
657+
No tokens, secrets, paths, or PII are included.
660658
661659
Args:
662660
as_dict: If True, return the report as a dictionary instead of printing.
663-
redact_paths: If True, redact user-specific paths in the output.
664661
665662
Returns:
666663
If as_dict is True, returns a dictionary containing all collected info.

0 commit comments

Comments
 (0)