]> git.ipfire.org Git - thirdparty/libvirt.git/commit
apibuild: Simplify uniq function
authorRadostin Stoyanov <rstoyanov1@gmail.com>
Tue, 20 Mar 2018 06:48:56 +0000 (06:48 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 20 Mar 2018 12:13:35 +0000 (12:13 +0000)
commite169caa462a2bc67158ce480b1c9f9f320996077
treee275f72e2b8356fe335ba833ae54040a23b8b5ce
parent94f417baa93ff1e120c065ba70daadce3c8cdd70
apibuild: Simplify uniq function

Use a set (unordered collections of unique elements) [1] to remove
repeated elements in a list.

1: https://docs.python.org/3/tutorial/datastructures.html#sets

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