-
-
Notifications
You must be signed in to change notification settings - Fork 770
Update breakpoint module to use python find_spec instead of find_module #1140
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Better to redirect to Stackoverflow as very few people log into the slack channel to reply.
Slack now has tonnes of unanswered question
For some reason, vim will still add packages even when -u is specified. This flag tells vim to avoid loading those packages. This should improve test isolation.
Updating submodules astroid, autopep8, mccabe, pyflakes and pylint
Python 3.7 introduced new builtin function `breakpoint()` (PEP 553) that can be used to insert breakpoints.
Add builtin breakpoint (PEP 553)
Fix text objects to be line-wise rather than character-wise operator
This is a new dependency for autopep8
Update build status badge from Travis to Actions
Updating submodules
This is an option for hanging indent size after an open parenthesis in line continuations. It defaults to `&shiftwidth` but can be assigned a different value. For example, hanging indent size can be set to 4 (even if the tabsize or shiftwidth is not 4) as per Google Python Style Guide.
Add option g:pymode_indent_hanging_width for different hanging indentation width
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1139
diff --git a/autoload/pymode/breakpoint.vim b/autoload/pymode/breakpoint.vim
index c3189aa..e62c041 100644
--- a/autoload/pymode/breakpoint.vim
+++ b/autoload/pymode/breakpoint.vim
@@ -15,11 +15,11 @@ fun! pymode#breakpoint#init() "{{{
-from imp import find_module
+from importlib.util import find_spec
for module in ('wdb', 'pudb', 'ipdb'):
try: