From 005cb5225f9591ac765c820382730c6115b68d0b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 18 Oct 2015 21:09:36 +0200 Subject: [PATCH] Use string.ascii_lowercase instead of string.lowercase Fixes https://github.com/davidhalter/jedi-vim/issues/478. Closes https://github.com/davidhalter/jedi-vim/pull/480. --- jedi_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi_vim.py b/jedi_vim.py index 8d3a92b..f1f9a94 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -258,7 +258,7 @@ def goto(mode="goto", no_output=False): tagname = d.name while vim_eval('taglist("^%s$")' % tagname) != []: tagname = d.name + ' ' + ''.join( - [random.choice(string.lowercase) + [random.choice(string.ascii_lowercase) for _ in range(4)]) f.write('{0}\t{1}\t{2}'.format(tagname, d.module_path, 'call cursor({0}, {1})'.format(d.line, d.column + 1)))