udev: fix parse_hwdb.py to work with pyparsing 2.1.10

From systemd commit f644a6da7a: "pyparsing 2.1.10 fixed the handling of
LineStart to really just apply to line starts and not ignore whitespace and
comments any more. Adjust EMPTYLINE to this."

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-01-16 12:57:27 +10:00
parent 1019a1703d
commit 572ef99bde

View file

@ -53,7 +53,7 @@ except ImportError:
print('WARNING: evdev is not available')
EOL = LineEnd().suppress()
EMPTYLINE = LineStart() + LineEnd()
EMPTYLINE = LineEnd()
COMMENTLINE = pythonStyleComment + EOL
INTEGER = Word(nums)
REAL = Combine((INTEGER + Optional('.' + Optional(INTEGER))) ^ ('.' + INTEGER))