]> git.phdru.name Git - dotfiles.git/commit
.vim/python/completion.py: Fix "bare exec" in Python 2
authorOleg Broytman <phd@phdru.name>
Mon, 3 Sep 2018 15:16:10 +0000 (18:16 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 3 Sep 2018 15:16:10 +0000 (18:16 +0300)
commit08c23401e5d9b37ac2ffceb1b5a783e1bc95ef5a
tree4371756bb899d70353383bdb3e9515b8671b1489
parentc1fb9100f55005a4d854b99cee25d4ef056569ce
.vim/python/completion.py: Fix "bare exec" in Python 2

Prevent SyntaxError: unqualified exec is not allowed in function 'vim_calc'
it contains a nested function with free variables.

The problem is that ''.join('\\x%02x' % ord(x) for x in str(_))
creates a generator.
.vim/python/completion.py