teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

Blame SOURCES/0305-hwdb-make-sure-ninja-update-hwdb-works-on-f35.patch

8d419f
From f644073dc9ab0213afa9b44a9378166c400b398e Mon Sep 17 00:00:00 2001
8d419f
From: Lennart Poettering <lennart@poettering.net>
8d419f
Date: Thu, 28 Apr 2022 17:41:48 +0200
8d419f
Subject: [PATCH] hwdb: make sure "ninja update-hwdb" works on f35
8d419f
8d419f
let's restore compatibility with pyparsing from fedora 35, i.e.:
8d419f
8d419f
python3-pyparsing-2.4.7-9.fc35.noarch
8d419f
8d419f
(cherry picked from commit 133a0003691daafaefa378f770ae01d01931787d)
8d419f
8d419f
Related: #2087778
8d419f
---
8d419f
 hwdb.d/ids_parser.py | 2 +-
8d419f
 1 file changed, 1 insertion(+), 1 deletion(-)
8d419f
8d419f
diff --git a/hwdb.d/ids_parser.py b/hwdb.d/ids_parser.py
8d419f
index 811c12559b..ed2c615508 100755
8d419f
--- a/hwdb.d/ids_parser.py
8d419f
+++ b/hwdb.d/ids_parser.py
8d419f
@@ -20,7 +20,7 @@ COMMENTLINE = pythonStyleComment + EOL
8d419f
 EMPTYLINE = LineEnd()
8d419f
 text_eol = lambda name: Regex(r'[^\n]+')(name) + EOL
8d419f
 
8d419f
-ParserElement.set_default_whitespace_chars(' \n')
8d419f
+ParserElement.setDefaultWhitespaceChars(' \n')
8d419f
 
8d419f
 def klass_grammar():
8d419f
     klass_line = Literal('C ').suppress() + NUM2('klass') + text_eol('text')