mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
Use vim tempname() instead of Python tempfile
This commit is contained in:
@@ -7,7 +7,6 @@ import traceback # for exception output
|
|||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
|
||||||
import string
|
import string
|
||||||
import random
|
import random
|
||||||
from shlex import split as shsplit
|
from shlex import split as shsplit
|
||||||
@@ -247,7 +246,7 @@ def goto(mode="goto", no_output=False):
|
|||||||
% d.desc_with_module)
|
% d.desc_with_module)
|
||||||
else:
|
else:
|
||||||
if vim_eval('g:jedi#use_tag_stack') == '1':
|
if vim_eval('g:jedi#use_tag_stack') == '1':
|
||||||
with tempfile.NamedTemporaryFile('w') as f:
|
with open(vim_eval('tempname()'), 'w') as f:
|
||||||
tagname = d.name
|
tagname = d.name
|
||||||
while vim_eval('taglist("^%s$")' % tagname) != []:
|
while vim_eval('taglist("^%s$")' % tagname) != []:
|
||||||
tagname = d.name + ' ' + ''.join(
|
tagname = d.name + ' ' + ''.join(
|
||||||
|
|||||||
Reference in New Issue
Block a user