Whole file
altdesktop/python-dbus-next
The author described this change as “fix variant validator”. It counts as a record because the check below fails on the code as it stood at 4bcf72ad9 and passes on d724fc26f, with nothing else changed between the two runs.
Projectaltdesktop/python-dbus-next
Fix saved2019-08-26
Sharing licenceMIT · LICENSE
Change size+0 −1
What the code was meant to do, written into the code itself as a save note
fix variant validator
The change
| 225 | 225 | self.children[i].verify(member) | |
| 226 | 226 | ||
| 227 | 227 | def _verify_variant(self, body): | |
| 228 | - | return | |
| 229 | 228 | # a variant signature and value is valid by construction | |
| 230 | 229 | if not isinstance(body, Variant): | |
| 231 | 230 | raise SignatureBodyMismatchError('DBus VARIANT type "v" must be Python type "Variant"') |
The check that tells the two apart
fail→pass·test/test_signature.py::test_invalid_variants
Check file test/test_signature.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it4bcf72ad94f01624a2412c2e99267dfc4b5ca92f
Broken version dated2019-08-26
Moduledbus_next.signature
Units changedSignatureType
Fingerprint4012fa5f23b36014
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.