-
Notifications
You must be signed in to change notification settings - Fork 786
ref: replace usage of deprecated imp #449
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
ref: replace usage of deprecated imp #449
Conversation
I can follow up with https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec if need be.
This reverts commit 1f25570.
|
Is this still broken? If so, what problems did you have? |
|
It's the fact that now I'm actually invoking the import mechanism for files that are fundamentally not importable to begin with. I noted this in my comments here: https://github.com/sshuttle/sshuttle/pull/449/files#diff-540decd43e8cfa1b8bf41c3b81a8bbb6R5-R8 |
brianmay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow. You reduced the number of lines... That is amazing!
sshuttle yells about
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses. It's been deprecated since 3.4, and I see there isn't any intention supporting < 3.5 based on #431.