Skip to content
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

Fix sys.modules for failed imports in Python 2.7 #1683

Merged

Conversation

brandonwillard
Copy link
Member

Newly imported modules with compile and/or run-time errors were not being removed from sys.modules. This commit modifies the Python 2.7 loader so that it follows Python's failed-initial-import logic and fixes the issue.

Newly imported modules with compile and/or run-time errors were not being
removed from `sys.modules`.  This commit modifies the Python 2.7 loader so that
it follows Python's failed-initial-import logic and removes the module from
`sys.modules`.
@brandonwillard brandonwillard force-pushed the fix-py27-failed-import-modules branch from b4af612 to a9763b3 Compare September 30, 2018 01:58
@Kodiologist
Copy link
Member

Whoops, I forgot to merge this.

@Kodiologist Kodiologist merged commit 4132adb into hylang:master Oct 16, 2018
@brandonwillard brandonwillard deleted the fix-py27-failed-import-modules branch October 16, 2018 20:05
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