Import 'neovim' instead of 'pynvim'

This was forgotten in 684ad23
pull/130/head v2.3.4
Marco Hinz 5 years ago
parent be295ef2ff
commit 8cb46bdc23
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

@ -23,7 +23,7 @@ THE SOFTWARE.
"""
import argparse
import pynvim
import neovim
import os
import psutil
import re
@ -47,9 +47,9 @@ class Nvr():
try:
socktype, address, port = parse_address(self.address)
if socktype == 'tcp':
self.server = pynvim.attach('tcp', address=address, port=int(port))
self.server = neovim.attach('tcp', address=address, port=int(port))
else:
self.server = pynvim.attach('socket', path=address)
self.server = neovim.attach('socket', path=address)
except OSError:
# Ignore invalid addresses.
pass
@ -136,7 +136,7 @@ class Nvr():
self.handled_first_buffer = True
else:
self.fnameescaped_command(cmd, fname)
except pynvim.api.nvim.NvimError as e:
except neovim.api.nvim.NvimError as e:
if not re.search('E37', e.args[0].decode()):
traceback.print_exc()
sys.exit(1)

@ -20,7 +20,7 @@ setup(
'console_scripts': ['nvr = nvr.nvr:main']
},
packages = ['nvr'],
version = '2.3.3',
version = '2.3.4',
license = 'MIT',
keywords = 'neovim nvim nvr remote helper',
classifiers = [

Loading…
Cancel
Save