From: W. Trevor King Date: Mon, 12 Nov 2012 02:12:19 +0000 (-0500) Subject: helpers: update package counts in get_cpvs doctest X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c14f2e750c85f08a1fc92a548cebb96654c1be05;p=gentoolkit.git helpers: update package counts in get_cpvs doctest --- diff --git a/pym/gentoolkit/helpers.py b/pym/gentoolkit/helpers.py index cc3bf35..7f30a24 100644 --- a/pym/gentoolkit/helpers.py +++ b/pym/gentoolkit/helpers.py @@ -371,10 +371,10 @@ def get_cpvs(predicate=None, include_installed=True): Example usage: >>> from gentoolkit.helpers import get_cpvs >>> len(set(get_cpvs())) - 26065 + 33518 >>> fn = lambda x: x.startswith('app-portage') >>> len(set(get_cpvs(fn, include_installed=False))) - 112 + 137 @type predicate: function @param predicate: a function to filter the package list with