projects
/
platform
/
upstream
/
libevdev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21ca8db
)
Change the python script to generate event names to Python3
author
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 14 Feb 2020 02:46:56 +0000
(12:46 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 14 Feb 2020 02:50:16 +0000
(12:50 +1000)
It's well past time. If you need this to run on python2, patch it out locally.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/make-event-names.py
patch
|
blob
|
history
diff --git
a/libevdev/make-event-names.py
b/libevdev/make-event-names.py
index c834e60c48cc8535403acecc8c20aafccf4e8157..ded5eef41867601dd7127440edf5c352deb2643a 100755
(executable)
--- a/
libevdev/make-event-names.py
+++ b/
libevdev/make-event-names.py
@@
-1,10
+1,9
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
# Parses linux/input.h scanning for #define KEY_FOO 134
# Prints C header files or Python files that can be used as
# mapping and lookup tables.
#
-from __future__ import print_function
import re
import sys