From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PorXf-0005E9-7k for garchives@archives.gentoo.org; Mon, 14 Feb 2011 06:04:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B5169E0992; Mon, 14 Feb 2011 06:00:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 85DFDE0992 for ; Mon, 14 Feb 2011 06:00:27 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 34C861B4121 for ; Mon, 14 Feb 2011 06:00:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9B24F8006D for ; Mon, 14 Feb 2011 06:00:26 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <5609d5d6f73b4e15477a4851c1f9701866b5a3c2.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/api.py X-VCS-Directories: layman/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 5609d5d6f73b4e15477a4851c1f9701866b5a3c2 Date: Mon, 14 Feb 2011 06:00:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 9831326c961c30a05811da99723dd5cf commit: 5609d5d6f73b4e15477a4851c1f9701866b5a3c2 Author: Brian Dolbec gmail com> AuthorDate: Fri Jul 16 00:52:54 2010 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri Feb 11 10:49:14 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D5609d5d6 fix the docstrings to match current input types. --- layman/api.py | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/layman/api.py b/layman/api.py index e3db37a..b6ff86a 100644 --- a/layman/api.py +++ b/layman/api.py @@ -99,8 +99,8 @@ class LaymanAPI(object): def delete_repo(self, repos): """delete the selected repo from the system =20 - @type repos: list - @param repos: ['repo-id1', ...] + @type repos: list of strings or string + @param repos: ['repo-id1', ...] or 'repo-id' @param output: method to handle output if desired @rtype dict """ @@ -130,8 +130,8 @@ class LaymanAPI(object): def add_repo(self, repos): """installs the seleted repo id =20 - @type repos: list - @param repos: ['repo-id1', ...] + @type repos: list of strings or string + @param repos: ['repo-id1', ...] or 'repo-id' @param output: method to handle output if desired @rtype dict """ @@ -161,8 +161,8 @@ class LaymanAPI(object): def get_info(self, repos): """retirves the recorded information about the repo specified by= id =20 - @type repos: list - @param repos: ['repo-id1', ...] + @type repos: list of strings or string + @param repos: ['repo-id1', ...] or 'repo-id' @rtype list of tuples [(str, bool, bool),...] @return: dictionary {'id': (info, official, supported)} """ @@ -191,7 +191,7 @@ class LaymanAPI(object): def sync(self, repos, output_results=3DTrue): """syncs the specified repo(s) specified by repos =20 - @type repos: list or string + @type repos: list of strings or string @param repos: ['repo-id1', ...] or 'repo-id' @rtype bool or {'repo-id': bool,...} """