diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2025-05-07 11:31:20 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2025-07-07 08:32:41 +0200 |
commit | bae4e80500b552f7b3658a1a6a158fef02047f58 (patch) | |
tree | 1f8ea0764cce5b32b8cc2178a20211b3c993e7ff /win32.py | |
parent | 4bf1c1ffe795a1d28a543a20cc3771a30a090b89 (diff) |
Remove the existing handler (and unused) in socketserver
Diffstat (limited to 'win32.py')
-rw-r--r-- | win32.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ -# Required for the window title name
from ctypes import wintypes, windll, create_unicode_buffer, WINFUNCTYPE
from typing import Optional, Dict
+import sys
from zope import interface
from interfaces import desktopEvent
@@ -113,8 +113,8 @@ class Listener(object): # Fatal Python error: PyEval_RestoreThread: the function must be
# called with the GIL held, but the GIL is released (the current
# Python thread state is NULL)
- print("Mapping '%s' to default" % title)
- component.handle(Mapping((default, None)))
+ print(f"Mapping '{title}' to default")
+ component.handle(Mapping(("default", None)))
def start(self) -> None:
self.hookIDs = [setHook(self.WinEventProc, et) for et in eventTypes.keys()]
|