From f9b708408c66ec5d5bed9c4fde44e3d3c2eaf631 Mon Sep 17 00:00:00 2001 From: Wolfgang Engel Date: Mon, 13 Mar 2023 16:19:15 +0100 Subject: [PATCH] Make examples python3 compliant --- doc/api/tutorial.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/tutorial.rst b/doc/api/tutorial.rst index 01a440d1..ed88dbfd 100644 --- a/doc/api/tutorial.rst +++ b/doc/api/tutorial.rst @@ -51,21 +51,21 @@ List all the projects and packages This will show all the projects on the remote |obs|: >>> for prj in osc.core.meta_get_project_list(apiurl, deleted=False): - print prj + print(prj) A project has **repositories** associated with it (eg. linux distributions): >>> prj = 'home:cavallo71:opt-python-interpreters' >>> for repo in osc.core.get_repos_of_project(apiurl, prj): - print repo + print(repo) A project contains packages and to list them all: >>> prj = 'home:cavallo71:opt-python-interpreters' >>> for pkg in osc.core.meta_get_packagelist(apiurl, prj): - print pkg + print(pkg) Add a package to an existing project