Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 478a7fd

Browse files
author
Lonnon Foster
committed
Use importlib instead of imp
1 parent 95fdf8f commit 478a7fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/pymode/breakpoint.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ fun! pymode#breakpoint#init() "{{{
99

1010
PymodePython << EOF
1111

12-
from imp import find_module
12+
from importlib import import_module
1313

1414
for module in ('wdb', 'pudb', 'ipdb', 'pdb'):
1515
try:
16-
find_module(module)
16+
import_module(module)
1717
vim.command('let g:pymode_breakpoint_cmd = "import %s; %s.set_trace() # XXX BREAKPOINT"' % (module, module))
1818
break
1919
except ImportError:

0 commit comments

Comments
 (0)