Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf756847

Browse files
committed
Merge branch 'develop' of github.com:klen/python-mode into develop
2 parentsc9fbaf1 +ded8edb commitf756847

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

‎autoload/pymode/breakpoint.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ for module in ('pudb', 'ipdb'):
2323
try:
2424
find_module(module)
2525
vim.command('let g:pymode_breakpoint_cmd = "import %s; %s.set_trace() # XXX BREAKPOINT"'% (module, module))
26+
break
2627
except ImportError:
2728
continue
2829
EOF

‎autoload/pymode/run.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,17 @@ EOF
113113
let &efm=s:efm
114114

115115
cgetexpr(l:traceback)
116+
" If a range is run (starting other than at line 1), fix the reported error line numbers for
117+
" the current buffer
118+
ifa:line1 >1
119+
let qflist=getqflist()
120+
foriin qflist
121+
ifi.bufnr==bufnr("")
122+
leti.lnum=i.lnum-1+a:line1
123+
endif
124+
endfor
125+
callsetqflist(qflist)
126+
endif
116127

117128
callpymode#QuickfixOpen(0,g:pymode_lint_hold,g:pymode_lint_maxheight,g:pymode_lint_minheight,0)
118129
let &efm=l:_efm

‎autoload/pymode/virtualenv.vim

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ activate_this = os.path.join(os.path.join(ve_dir, 'bin'), 'activate_this.py')
2323
if not os.path.exists(activate_this):
2424
activate_this= os.path.join(os.path.join(ve_dir,'Scripts'),'activate_this.py')
2525

26-
execfile(activate_this,dict(__file__=activate_this))
26+
f=open(activate_this)
27+
try:
28+
source=f.read()
29+
finally:
30+
f.close()
31+
32+
exec(compile(source, activate_this,'exec'),dict(__file__=activate_this))
2733
EOF
2834

2935
callpymode#WideMessage("Activate virtualenv:".$VIRTUAL_ENV)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp