Change event name generate script to be python 2/3 compatible
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 25 Aug 2013 22:53:46 +0000 (08:53 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 29 Aug 2013 01:35:18 +0000 (11:35 +1000)
commita3e8a240ab7618e11ce77e18957a4b6f308c939b
treedd8f6f83774d77fbf094aa04c821a9731641aa88
parent144b731202e94520e5c77e552620be0e9d98ea43
Change event name generate script to be python 2/3 compatible

Python 3 doesn't have a print statement, only a print function.

Fixed with:
  2to3 make-event-names.py | git apply

Print as function requires Python 2.6 which is reasonable enough given
that even RHEL6 ships that.

Even though it's not needed for 2.6, use
from __future__ import print_function
to avoid accidentally introducing a print statement in the future.
With this line, print "blah" is now a syntax error in python 2.
This line was added manually, after the 2to3 conversion.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/make-event-names.py