home · contact · privacy
For _ClientWindowManager.log, allow msg= as positional argument.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 10 Aug 2025 13:07:18 +0000 (15:07 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 10 Aug 2025 13:07:18 +0000 (15:07 +0200)
ircplom/client_tui.py

index 95659b25b24502c6a723994db49618140bc0a2c1..f4aa60db2b08ce26bd57e6ca75405ee00e6c5577 100644 (file)
@@ -94,7 +94,8 @@ class _ClientWindowsManager:
 
     def __init__(self, client_id: str, new_window: Callable, tui_log: Callable
                  ) -> None:
-        self.log = lambda **kw: tui_log(client_id=client_id, **kw) or True
+        self.log = lambda msg, **kw:tui_log(msg=msg, client_id=client_id, **kw
+                                            ) or True
         self.windows: list[_ClientWindow] = []
         self._tui_new_window = new_window
         for stream in (STREAM_SERVER, STREAM_RAW):
@@ -127,7 +128,7 @@ class _ClientWindowsManager:
             if new_value != old_value:
                 to_change[key] = (old_value, new_value)
         for key, vals in to_change.items():
-            self.log(msg=f'changing {key}: [{vals[0]}] -> [{vals[1]}]',
+            self.log(f'changing {key}: [{vals[0]}] -> [{vals[1]}]',
                      stream=STREAM_SERVER)
             setattr(self, key, vals[1])
         tainteds = False