From 572ef99bde24064aa8a829ec4bcec15714406516 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 16 Jan 2017 12:57:27 +1000 Subject: [PATCH] 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 --- udev/parse_hwdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev/parse_hwdb.py b/udev/parse_hwdb.py index 99e9c592..d90c90fc 100755 --- a/udev/parse_hwdb.py +++ b/udev/parse_hwdb.py @@ -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))