X Tutup
Skip to content

Update breakpoint module to use python find_spec instead of find_module#1140

Closed
Toure wants to merge 236 commits intomasterfrom
develop
Closed

Update breakpoint module to use python find_spec instead of find_module#1140
Toure wants to merge 236 commits intomasterfrom
develop

Conversation

@Toure
Copy link
Copy Markdown

@Toure Toure commented Aug 21, 2021

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() "{{{

     PymodePython << EOF

-from imp import find_module
+from importlib.util import find_spec

for module in ('wdb', 'pudb', 'ipdb'):
try:

  •    find_module(module)
    
  •    find_spec(module)
       vim.command('let g:pymode_breakpoint_cmd = "import %s; %s.set_trace()  # XXX BREAKPOINT"' % (module, module))
       break
    
    except ImportError:

klen and others added 30 commits June 29, 2017 16:45
Better to redirect to Stackoverflow as very few people log into the slack channel to reply.
Slack now has tonnes of unanswered question
diraol and others added 29 commits April 16, 2020 13:19
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
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
@Toure Toure closed this Aug 21, 2021
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.

X Tutup