dcavalca / rpms / systemd

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