summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2018-11-20 10:23:43 +0100
committerJano Tomko <jtomko@redhat.com>2020-09-01 13:26:01 +0000
commit9e325358de43040e76b54ecfda8093b26b375ca7 (patch)
tree2e47c9969f98f8b38b056840071fa2c61756fce8
parent03b558b32e9d38728d89cabfe06c1f68e8a9d8cd (diff)
downloadlibvirt-python-9e325358de43040e76b54ecfda8093b26b375ca7.tar.gz
generator: Use increment assignment
:%s,\(\w\+\)\s*=\s*\1\s*+,\1 +=, 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 3328e03..e646cd3 100755
--- a/generator.py
+++ b/generator.py
@@ -975,15 +975,15 @@ def buildStubs(module, api_xml):
# Skip the functions which are not for the module
ret = print_function_wrapper(module, function, wrapper, export, include)
if ret < 0:
- failed = failed + 1
+ failed += 1
funcs_failed.append(function)
del funcs[function]
if ret == 0:
- skipped = skipped + 1
+ skipped += 1
funcs_skipped.append(function)
del funcs[function]
if ret == 1:
- nb_wrap = nb_wrap + 1
+ nb_wrap += 1
if module == "libvirt":
# Write C pointer conversion functions.