]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: make sure "ninja update-hwdb" works on f35
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Apr 2022 15:41:48 +0000 (17:41 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Apr 2022 15:42:25 +0000 (17:42 +0200)
let's restore compatibility with pyparsing from fedora 35, i.e.:

python3-pyparsing-2.4.7-9.fc35.noarch

hwdb.d/ids_parser.py

index 811c12559ba1e65a8229cd431360458292b3970d..ed2c615508def3874c3544fbf511a83ae0b3c288 100755 (executable)
@@ -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')