🎨 clean up code
2 files changed, 3 insertions(+), 5 deletions(-)

M lairucrem/controler.py
M lairucrem/mixin.py
M lairucrem/controler.py +3 -3
@@ 81,7 81,7 @@ class _hgwalker(ensurable, waitable, urw
         try:
             async for line in self.hgproc:
                 yield line
-        except asyncio.CancelledError as error:
+        except asyncio.CancelledError:
             # raised when the task is interrupted
             pass
 

          
@@ 376,7 376,6 @@ class diffwalker(_patchdetailwalker):
         _attr_map = {None: 'diff.diffline'}
         _focus_map = {None: 'diff.diffline.focus'}
 
-
     def get_cmd(self):
         if self.node is None:
             cmd = ['--verbose', 'diff']

          
@@ 477,7 476,8 @@ class graphlistbox(
         # quickly browsing the history.
         # 2) IMPORTANT: 'on_commandlist' callback must be called after 'reset_commands_selector'
         # callback to ensure displaying the menu of the currently focused node.
-        urwid.connect_signal(self, 'changed', partial(self.reset_commands_selectors.delay, duration=0.4))
+        urwid.connect_signal(self, 'changed', partial(
+            self.reset_commands_selectors.delay, duration=0.4))
         urwid.connect_signal(self, 'commandlist', partial(self.on_commandlist.delay, duration=0.5))
 
     @property

          
M lairucrem/mixin.py +0 -2
@@ 6,7 6,6 @@ 
 
 import asyncio
 import re
-import sys
 from functools import reduce
 from operator import or_
 from typing import List, Text, Tuple

          
@@ 284,7 283,6 @@ class commandable_listbox(_key_to_signal
         self.ensure()
 
 
-
 class searchable_walker(_mixin):
     """Add search capability to the walker.