Skip to content

Commit 0253875

Browse files
committed
Support path protocol
1 parent 7f23464 commit 0253875

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎docs/changelog.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ Changelog
22
---------
33

44

5+
Unreleased
6+
====================
7+
8+
- Support path protocol in ``InputDevice``.
9+
10+
511
0.6.4 (Oct 07, 2016)
612
====================
713

‎evdev/device.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ def __repr__(self):
266266
msg = (self.__class__.__name__, self.fn)
267267
return '{}({!r})'.format(*msg)
268268

269+
def __fspath__(self):
270+
return self.fn
271+
269272
def close(self):
270273
if self.fd > -1:
271274
try:

0 commit comments

Comments
 (0)