Skip to content

Commit

Permalink
Drop from __future__ import print_function
Browse files Browse the repository at this point in the history
  • Loading branch information
gvalkov committed May 8, 2024
1 parent 596dc52 commit 0d496bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion evdev/evtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
evtest /dev/input/event0 /dev/input/event1
"""

from __future__ import print_function

import re
import sys
Expand Down
5 changes: 2 additions & 3 deletions evdev/genecodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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:]))


# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 0d496bf

Please sign in to comment.