summaryrefslogtreecommitdiff
path: root/examples/topology.py
Commit message (Collapse)AuthorAgeFilesLines
* examples: Fix white spacePhilipp Hahn2020-08-051-7/+11
| | | | | | | indent by 4 spaces one spaces around assignments Signed-off-by: Philipp Hahn <hahn@univention.de>
* examples: Replace sys.exit() with exit()Philipp Hahn2020-08-051-3/+2
| | | | | | No need to import sys. Signed-off-by: Philipp Hahn <hahn@univention.de>
* Drop support for python 2Daniel P. Berrangé2019-12-041-1/+1
| | | | | | | | | python2 will be end of life by the time of the next libvirt release. All our supported build targets, including CentOS7, have a python3 build available. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
* examples: Invoke print("...") instead of print "..."Daniel P. Berrange2013-12-111-7/+7
| | | | | | | The 'print' method must be called as a function in python3, ie with brackets. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Move python example programs into python/examples/ subdirectoryDaniel P. Berrange2013-11-221-0/+45
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>