Skip to content

Commit 8bc7704

Browse files
committed
Improve python API: Fix PEP8 compliance.
- Two blank lines before function. - Use def instead of assigning lambda to local variable.
1 parent dd91aa1 commit 8bc7704

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

neovim/msgpack_rpc/event_loop/uv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ def _on_async(self, handle):
108108

109109
def _setup_signals(self, signals):
110110
self._signal_handles = []
111-
handler = lambda h, signum: self._on_signal(signum)
111+
112+
def handler(h, signum):
113+
self._on_signal(signum)
114+
112115
for signum in signals:
113116
handle = pyuv.Signal(self._loop)
114117
handle.start(handler, signum)

test/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
vim.input(cleanup_func)
6565

66+
6667
def cleanup():
6768
# cleanup nvim
6869
vim.command('call BeforeEachTest()')

0 commit comments

Comments
 (0)