mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-03 09:10:14 +01:00
scanner: convert the 'version' and 'since' arguments to int
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/328>
This commit is contained in:
parent
fa21d765a1
commit
b0deafc641
1 changed files with 4 additions and 4 deletions
|
|
@ -520,7 +520,7 @@ class ProtocolParser(xml.sax.handler.ContentHandler):
|
|||
|
||||
try:
|
||||
name = attrs["name"]
|
||||
version = attrs["version"]
|
||||
version = int(attrs["version"])
|
||||
except KeyError as e:
|
||||
raise XmlError.create(
|
||||
f"Missing attribute {e} in element '{element}'",
|
||||
|
|
@ -559,7 +559,7 @@ class ProtocolParser(xml.sax.handler.ContentHandler):
|
|||
)
|
||||
try:
|
||||
name = attrs["name"]
|
||||
since = attrs["since"]
|
||||
since = int(attrs["since"])
|
||||
except KeyError as e:
|
||||
raise XmlError.create(
|
||||
f"Missing attribute {e} in element '{element}'",
|
||||
|
|
@ -612,7 +612,7 @@ class ProtocolParser(xml.sax.handler.ContentHandler):
|
|||
|
||||
try:
|
||||
name = attrs["name"]
|
||||
since = attrs["since"]
|
||||
since = int(attrs["since"])
|
||||
except KeyError as e:
|
||||
raise XmlError.create(
|
||||
f"Missing attribute {e} in element '{element}'",
|
||||
|
|
@ -646,7 +646,7 @@ class ProtocolParser(xml.sax.handler.ContentHandler):
|
|||
)
|
||||
try:
|
||||
name = attrs["name"]
|
||||
since = attrs["since"]
|
||||
since = int(attrs["since"])
|
||||
except KeyError as e:
|
||||
raise XmlError.create(
|
||||
f"Missing attribute {e} in element '{element}'",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue