summaryrefslogtreecommitdiff
path: root/hwdb.d
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-04-28 17:41:48 +0200
committerLennart Poettering <lennart@poettering.net>2022-04-28 17:42:25 +0200
commit133a0003691daafaefa378f770ae01d01931787d (patch)
tree4453cab4d603dd8eaf2ab54add2e7323568aed9f /hwdb.d
parent98045d12f6172cf2dcced40bbed933aa0703aef7 (diff)
downloadsystemd-133a0003691daafaefa378f770ae01d01931787d.tar.gz
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
Diffstat (limited to 'hwdb.d')
-rwxr-xr-xhwdb.d/ids_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdb.d/ids_parser.py b/hwdb.d/ids_parser.py
index 811c12559b..ed2c615508 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')