From: Lennart Poettering Date: Thu, 28 Apr 2022 15:41:48 +0000 (+0200) Subject: hwdb: make sure "ninja update-hwdb" works on f35 X-Git-Tag: v251-rc2~51^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=133a0003691daafaefa378f770ae01d01931787d;p=thirdparty%2Fsystemd.git hwdb: make sure "ninja update-hwdb" works on f35 let's restore compatibility with pyparsing from fedora 35, i.e.: python3-pyparsing-2.4.7-9.fc35.noarch --- diff --git a/hwdb.d/ids_parser.py b/hwdb.d/ids_parser.py index 811c12559ba..ed2c615508d 100755 --- a/hwdb.d/ids_parser.py +++ b/hwdb.d/ids_parser.py @@ -20,7 +20,7 @@ COMMENTLINE = pythonStyleComment + EOL EMPTYLINE = LineEnd() text_eol = lambda name: Regex(r'[^\n]+')(name) + EOL -ParserElement.set_default_whitespace_chars(' \n') +ParserElement.setDefaultWhitespaceChars(' \n') def klass_grammar(): klass_line = Literal('C ').suppress() + NUM2('klass') + text_eol('text')