Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion evdev/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def set_led(self, led_num, value):

def __eq__(self, other):
'''Two devices are equal if their :data:`info` attributes are equal.'''
return self.info == other.info
return isinstance(other, InputDevice) and self.info == other.info

def __str__(self):
msg = 'device {}, name "{}", phys "{}"'
Expand Down