summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2018-11-20 11:14:46 +0100
committerJano Tomko <jtomko@redhat.com>2020-09-01 13:26:01 +0000
commita0798b9bbcb22ec3deebd14387f29dda91d2dbb3 (patch)
tree2730b296ad8e95ebc1e9468db6cb696bf9b43c83
parent94b30b7fb75deb07861e11a08823397d3be4d143 (diff)
downloadlibvirt-python-a0798b9bbcb22ec3deebd14387f29dda91d2dbb3.tar.gz
generator: Initialize function_classes directly
Signed-off-by: Philipp Hahn <hahn@univention.de>
-rwxr-xr-xgenerator.py6
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.