Skip to content

Conversation

@shicks
Copy link

@shicks shicks commented Feb 19, 2025

The fn attribute was deprecated in evdev 1.0.0 (Jun 02, 2018), and has now been removed.

The `fn` attribute was deprecated in evdev 1.0.0 (Jun 02, 2018), and has now been removed.
@Adam-Yung
Copy link

Please merge this, or else the current release will crash unless we manually patch it like below:

diff --git a/xkeysnail/input.py b/xkeysnail/input.py
index 8190949..f347038 100644
--- a/xkeysnail/input.py
+++ b/xkeysnail/input.py
@@ -33,7 +33,7 @@ def is_keyboard_device(device):

def print_device_list(devices):

  • device_format = '{1.fn:<20} {1.name:<35} {1.phys}'
  • device_format = '{1.fd:<20} {1.name:<35} {1.phys}'
    device_lines = [device_format.format(n, d) for n, d in enumerate(devices)]
    print('-' * len(max(device_lines, key=len)))
    print('{:<20} {:<35} {}'.format('Device', 'Name', 'Phys'))

@Pehrsons
Copy link

ping @mooz as this breaks downstream projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants