diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-16 12:57:27 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-16 12:57:27 +1000 |
commit | 572ef99bde24064aa8a829ec4bcec15714406516 (patch) | |
tree | aae771561b436b3540128b7c24379b585080e422 /udev | |
parent | 1019a1703d21c240a271eafeec49779c0d8d096e (diff) |
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>
Diffstat (limited to 'udev')
-rwxr-xr-x | udev/parse_hwdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/parse_hwdb.py b/udev/parse_hwdb.py index 99e9c59..d90c90f 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)) |