Commits

Arun Mahapatra committed ca3c2ce

Fix to invoke python3 instead of python in vim.

Comments (0)

Files changed (1)

     def _encode_line(self, line):
         return line.encode(self._get_encoding())
     def _decode_line(self, line):
-        return line.decode(self._get_encoding())
+        return line
 
     def _position_to_offset(self, lineno, colno):
         result = min(colno, len(self.buffer[lineno -1]) + 1)
         globals()[name] = callback
         arg = 'None' if prefix else ''
         vim.command('function! %s()\n' % _vim_name(name) +
-                    'python ropevim.%s(%s)\n' % (name, arg) +
+                    'python3 ropevim.%s(%s)\n' % (name, arg) +
                     'endfunction\n')
 
     def _completion_data(self, proposal):
 
     def __init__(self):
         self.values = []
-        vim.command('python import vim')
+        vim.command('python3 import vim')
         vim.command('function! RopeValueCompleter(A, L, P)\n'
-                    'python args = [vim.eval("a:" + p) for p in "ALP"]\n'
-                    'python ropevim._completer(*args)\n'
+                    'python3 args = [vim.eval("a:" + p) for p in "ALP"]\n'
+                    'python3 ropevim._completer(*args)\n'
                     'return s:completions\n'
                     'endfunction\n')