summaryrefslogtreecommitdiffstats
path: root/hwdb.d/parse_hwdb.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-01-28 03:08:43 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-01-28 05:18:28 +0100
commite912326e05cf753ddb703be0666336ee3386d6e0 (patch)
tree74673a1e46341cfb414f0cf68dd9027120a0c5e3 /hwdb.d/parse_hwdb.py
parentMerge pull request #22277 from yuwata/test-network-activation-policy (diff)
downloadsystemd-e912326e05cf753ddb703be0666336ee3386d6e0.tar.xz
systemd-e912326e05cf753ddb703be0666336ee3386d6e0.zip
test: frequency in mouse DPI is optional
Prompted by #22278.
Diffstat (limited to '')
-rwxr-xr-xhwdb.d/parse_hwdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
index 0268bf9580..aef0331ace 100755
--- a/hwdb.d/parse_hwdb.py
+++ b/hwdb.d/parse_hwdb.py
@@ -121,7 +121,7 @@ def hwdb_grammar():
def property_grammar():
ParserElement.setDefaultWhitespaceChars(' ')
- dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Suppress('@') + INTEGER('HZ'))('SETTINGS*')
+ dpi_setting = Group(Optional('*')('DEFAULT') + INTEGER('DPI') + Optional(Suppress('@') + INTEGER('HZ')))('SETTINGS*')
mount_matrix_row = SIGNED_REAL + ',' + SIGNED_REAL + ',' + SIGNED_REAL
mount_matrix = Group(mount_matrix_row + ';' + mount_matrix_row + ';' + mount_matrix_row)('MOUNT_MATRIX')
xkb_setting = Optional(Word(alphanums + '+-/@._'))