home
·
contact
·
privacy
projects
/
ircplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b08040
)
For _ClientWindowManager.log, allow msg= as positional argument.
master
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 10 Aug 2025 13:07:18 +0000
(15:07 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 10 Aug 2025 13:07:18 +0000
(15:07 +0200)
ircplom/client_tui.py
patch
|
blob
|
history
diff --git
a/ircplom/client_tui.py
b/ircplom/client_tui.py
index 95659b25b24502c6a723994db49618140bc0a2c1..f4aa60db2b08ce26bd57e6ca75405ee00e6c5577 100644
(file)
--- a/
ircplom/client_tui.py
+++ b/
ircplom/client_tui.py
@@
-94,7
+94,8
@@
class _ClientWindowsManager:
def __init__(self, client_id: str, new_window: Callable, tui_log: Callable
) -> None:
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):
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():
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
stream=STREAM_SERVER)
setattr(self, key, vals[1])
tainteds = False