mirror of
https://github.com/systemd/systemd
synced 2024-10-06 16:21:34 +00:00
parse_hwdb: fix to work with pyparsing 2.1.10
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. Many thanks to Paul McGuire for pointing this out!
This commit is contained in:
parent
2926b130b6
commit
f644a6da7a
|
@ -56,7 +56,7 @@ except ImportError:
|
|||
lru_cache = lambda: (lambda f: f)
|
||||
|
||||
EOL = LineEnd().suppress()
|
||||
EMPTYLINE = LineStart() + LineEnd()
|
||||
EMPTYLINE = LineEnd()
|
||||
COMMENTLINE = pythonStyleComment + EOL
|
||||
INTEGER = Word(nums)
|
||||
REAL = Combine((INTEGER + Optional('.' + Optional(INTEGER))) ^ ('.' + INTEGER))
|
||||
|
|
Loading…
Reference in a new issue