1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
This commit is contained in:
wsdjeg 2017-10-24 22:57:50 +08:00
parent 0e6f1183a9
commit 5e99dee238

View File

@ -2,6 +2,7 @@ let s:self = {}
if has('python')
" @vimlint(EVL103, 1, a:text)
function! s:self.encode(text) abort
py import vim
py import base64
@ -24,6 +25,7 @@ except TypeError, e:
vim.command("return '{}'".format(ret))
EOF
endfunction
" @vimlint(EVL103, 0, a:text)
else
function! s:self.encode(data) abort
let b64 = self._b64encode(self._str2bytes(a:data), self.standard_table, '=')