diff --git a/evdev/evtest.py b/evdev/evtest.py index 063ca83..b61f093 100644 --- a/evdev/evtest.py +++ b/evdev/evtest.py @@ -16,7 +16,6 @@ evtest /dev/input/event0 /dev/input/event1 """ -from __future__ import print_function import re import sys diff --git a/evdev/genecodes.py b/evdev/genecodes.py index f27104e..ce9939e 100644 --- a/evdev/genecodes.py +++ b/evdev/genecodes.py @@ -2,7 +2,6 @@ Generate a Python extension module with the constants defined in linux/input.h. """ -from __future__ import print_function import os, sys, re @@ -22,9 +21,9 @@ macro_regex = r"#define +((?:KEY|ABS|REL|SW|MSC|LED|BTN|REP|SND|ID|EV|BUS|SYN|FF|UI_FF|INPUT_PROP)_\w+)" macro_regex = re.compile(macro_regex) +# Uname without hostname. uname = list(os.uname()) -del uname[1] -uname = " ".join(uname) +uname = " ".join((uname[0], *uname[2:])) # -----------------------------------------------------------------------------