diff options
author | Philipp Hahn <hahn@univention.de> | 2018-11-20 11:14:46 +0100 |
---|---|---|
committer | Jano Tomko <jtomko@redhat.com> | 2020-09-01 13:26:01 +0000 |
commit | a0798b9bbcb22ec3deebd14387f29dda91d2dbb3 (patch) | |
tree | 2730b296ad8e95ebc1e9468db6cb696bf9b43c83 | |
parent | 94b30b7fb75deb07861e11a08823397d3be4d143 (diff) | |
download | libvirt-python-a0798b9bbcb22ec3deebd14387f29dda91d2dbb3.tar.gz |
generator: Initialize function_classes directly
Signed-off-by: Philipp Hahn <hahn@univention.de>
-rwxr-xr-x | generator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generator.py b/generator.py index 93968fc..ed9b1c2 100755 --- a/generator.py +++ b/generator.py @@ -1099,9 +1099,9 @@ functions_noexcept = { 'virNWFilterBindingGetPortDev': True, } -function_classes = {} - -function_classes["None"] = [] +function_classes = { + "None": [] +} # type: Dict[str, List[Any]] # Functions returning an integral type which need special rules to # check for errors and raise exceptions. |