aboutsummaryrefslogtreecommitdiff
path: root/win32.py
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2025-05-07 11:31:20 +0200
committerSébastien Dailly <sebastien@dailly.me>2025-07-07 08:32:41 +0200
commitbae4e80500b552f7b3658a1a6a158fef02047f58 (patch)
tree1f8ea0764cce5b32b8cc2178a20211b3c993e7ff /win32.py
parent4bf1c1ffe795a1d28a543a20cc3771a30a090b89 (diff)
Remove the existing handler (and unused) in socketserver
Diffstat (limited to 'win32.py')
-rw-r--r--win32.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32.py b/win32.py
index 1b45a95..c1b0ae3 100644
--- a/win32.py
+++ b/win32.py
@@ -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()]