diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-17 19:10:35 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-22 16:22:29 -0600 |
commit | d2ef29ecf234aceb81d300f276d1f5704617d94d (patch) | |
tree | 2e4b42f3436994a4a86ad58b263076da6064742d | |
parent | 999a5a51a0c00bac636adab86fc0033d0bbd98e0 (diff) |
stack.c.gen: Fix a crash
-rwxr-xr-x | build-aux/stack.c.gen | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen index a8a971e..1a96379 100755 --- a/build-aux/stack.c.gen +++ b/build-aux/stack.c.gen @@ -130,7 +130,9 @@ class QName: return self._content def __eq__(self, other: typing.Any) -> bool: - assert isinstance(other, QName) + assert isinstance( + other, QName + ), f"comparing QName with {other.__class__.__name__}" return self._content == other._content def __lt__(self, other: "QName") -> bool: @@ -541,7 +543,7 @@ class LibObjPlugin: objcalls: dict[str, set[QName]] = {} # method_name => {method_impls} for iface_name in ifaces: for method_name in ifaces[iface_name]: - if QName(method_name) not in objcalls: + if method_name not in objcalls: objcalls[method_name] = set() for impl_name in implementations[iface_name]: objcalls[method_name].add(QName(impl_name + "_" + method_name)) |