Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c0b5075

Browse filesBrowse files
authored
fix(gazelle): Explicitly call sys.exit in the modules_mapping generator (#2662)
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
1 parent 389431b commit c0b5075
Copy full SHA for c0b5075

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎gazelle/modules_mapping/generator.py

Copy file name to clipboardExpand all lines: gazelle/modules_mapping/generator.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,4 @@ def data_has_purelib_or_platlib(path):
164164
generator = Generator(
165165
sys.stderr, args.output_file, args.exclude_patterns, args.include_stub_packages
166166
)
167-
exit(generator.run(args.wheels))
167+
sys.exit(generator.run(args.wheels))

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.