]> git.ipfire.org Git - thirdparty/libvirt.git/commit
apibuild: Use isinstance for type checking
authorRadostin Stoyanov <rstoyanov1@gmail.com>
Tue, 20 Mar 2018 06:48:44 +0000 (06:48 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Mar 2018 12:13:35 +0000 (12:13 +0000)
commit80559e4879b9c150b2753a44a53cf83b0c4b5355
treea293b5e87799152d77538ee4885b852e00065c7f
parent1554eafbe67169d8c6aa9e888bb03fe721f40dab
apibuild: Use isinstance for type checking

The isinstance() function [1] returns true if an object argument is an
instance of a classinfo argument or of a direct, indirect subclass
thereof.

1: https://docs.python.org/3/library/functions.html#isinstance

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
docs/apibuild.py