libvirt-hook-qemu
libvirt-hook-qemu copied to clipboard
Remove trailing comma from hooks.json and fix SyntaxWarning in Python 3.12
This pull request does 2 things:
- Update the
json_minify
function inhooks
to match the upstream version. One benefit is that it fixes SyntaxWarning that shows up in Python 3.12. I have tested it using my ownhooks.json
and can confirm that both version produce the same output - Remove the trailing comma in
hooks.json
. The previous pull request left the comma there, and thejson_minify
function can't deal with it, so it crashes the hook