summaryrefslogtreecommitdiff
path: root/dev-python/python-evdev/files/python-evdev-1.5.0-python311.patch
blob: 1f516c79acb2fbd9281f0ea7fb0ef6b1d2670cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/evdev/eventio_async.py b/evdev/eventio_async.py
index 77542a4..68225c3 100644
--- a/evdev/eventio_async.py
+++ b/evdev/eventio_async.py
@@ -85,8 +85,7 @@ class ReadIterator(object):
     def __aiter__(self):
         return self
 
-    @asyncio.coroutine
-    def __anext__(self):
+    async def __anext__(self):
         future = asyncio.Future()
         try:
             # Read from the previous batch of events.