Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(gazelle): Explicitly call sys.exit in the modules_mapping generator #2662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

samschlegel
Copy link
Contributor

When running python with -S to disable the site module, exit isn't implicitly imported and you need to explicitly call sys.exit instead. Seems to be a remnant of the REPL

When running python with `-S` to disable the `site` module, you need to
explicitly call `sys.exit` instead of the `exit` function which seems to
be a remnant of the REPL
@dougthor42 dougthor42 added this pull request to the merge queue Mar 15, 2025
Merged via the queue into bazel-contrib:main with commit c0b5075 Mar 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants