Skip to content

Commit 0d496bf

Browse files
committed
Drop from __future__ import print_function
1 parent 596dc52 commit 0d496bf

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

evdev/evtest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
evtest /dev/input/event0 /dev/input/event1
1717
"""
1818

19-
from __future__ import print_function
2019

2120
import re
2221
import sys

evdev/genecodes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Generate a Python extension module with the constants defined in linux/input.h.
33
"""
44

5-
from __future__ import print_function
65
import os, sys, re
76

87

@@ -22,9 +21,9 @@
2221
macro_regex = r"#define +((?:KEY|ABS|REL|SW|MSC|LED|BTN|REP|SND|ID|EV|BUS|SYN|FF|UI_FF|INPUT_PROP)_\w+)"
2322
macro_regex = re.compile(macro_regex)
2423

24+
# Uname without hostname.
2525
uname = list(os.uname())
26-
del uname[1]
27-
uname = " ".join(uname)
26+
uname = " ".join((uname[0], *uname[2:]))
2827

2928

3029
# -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)