fix:  `takes {X} positional arguments but {X+1} were given`
1 files changed, 5 insertions(+), 5 deletions(-)

M lairucrem/controler.py
M lairucrem/controler.py +5 -5
@@ 129,7 129,7 @@ class _listbox(ensurable, waitable, mixi
         urwid.signals.connect_signal(
             self.body, 'modified', self._on_modified)
 
-    def _on_modified(self):
+    def _on_modified(self, *args):
         # reset the view when the first line arrived
         return
 

          
@@ 361,7 361,7 @@ class diffstatwalker(_patchdetailwalker)
         widget.fname = fname = content[0][1].split('|')[0].strip()
         # propagate signal
         urwid.connect_signal(
-            widget, 'link', lambda w: urwid.emit_signal(self, 'link', fname))
+            widget, 'link', lambda w, *args: urwid.emit_signal(self, 'link', fname, *args))
         return widget
 
 

          
@@ 536,7 536,7 @@ class graphlistbox(
         self._changeset.rev = rev
         self.ensure()
 
-    async def _on_focus_rev(self, rev):
+    async def _on_focus_rev(self, rev, *args):
         """Set the focus focus to cset with the given `rev` (-1 == cwd)."""
         widget, position = await self._changeset.get_rev(rev)
         if position is not None:

          
@@ 639,7 639,7 @@ class patchlistbox(
                 self._invalidate()
                 break
 
-    async def _on_jump_to_diffline(self, fname):
+    async def _on_jump_to_diffline(self, fname, *args):
         assert self.wait.task
         await self.wait.task    # wait until all loaded
         self._goto(

          
@@ 715,7 715,7 @@ class maincontroler(ensurable):
         elif key == 'G':
             self.on_grep.ensure()
 
-    async def _on_grep(self):
+    async def _on_grep(self, *args):
         edit = widgets.edit([('ui.label', 'pattern: ')], self._grep_pattern)
         answer = await dialog.ask(edit, title='Grep', focus_content=True)
         if not answer: