aboutsummaryrefslogtreecommitdiff
path: root/win32.py
diff options
context:
space:
mode:
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()]