Skip to content

Commit ea2da71

Browse files
committed
Merge pull request gvalkov#51 from paulo-raca/import_fix
Fixing minor mistakes
2 parents 5475ec8 + 7c57f5f commit ea2da71

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

evdev/device.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# encoding: utf-8
22

33
import os
4-
import fcntl
5-
import select
6-
import functools
74
import collections
85

96
from evdev import _input, ecodes, util
107
from evdev.events import InputEvent
118

129
try:
13-
import asyncio
1410
from evdev.eventio_async import EventIO
1511
except ImportError:
1612
from evdev.eventio import EventIO

evdev/eventio.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import fcntl
55
import functools
66
import select
7-
import collections
87

98
from evdev import _input, _uinput, ecodes, util
109
from evdev.events import InputEvent

evdev/eventio_async.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# encoding: utf-8
22

33
import asyncio
4+
import select
45

56
from evdev import eventio
67

@@ -38,7 +39,7 @@ def read_loop(self):
3839
3940
The returned iterator is compatible with the ``async for`` syntax
4041
'''
41-
return ReadItertor(self)
42+
return ReadIterator(self)
4243

4344

4445
class ReadIterator(object):

evdev/uinput.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
from evdev import _uinput
88
from evdev import ecodes, util, device
99
from evdev.events import InputEvent
10-
from evdev.eventio import EventIO
10+
11+
try:
12+
from evdev.eventio_async import EventIO
13+
except ImportError:
14+
from evdev.eventio import EventIO
15+
1116

1217
class UInputError(Exception):
1318
pass

0 commit comments

Comments
 (0)