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.
This commit is contained in:
Daniel Hahler
2015-10-18 21:09:36 +02:00
parent 95d8eb1b08
commit 005cb5225f

View File

@@ -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)))