aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gmail.com>2023-11-20 19:44:42 -0800
committerArthur Zamarin <arthurzam@gentoo.org>2023-11-24 17:17:21 +0200
commit939c556d4acbe1d451fd7d336a6ed7bb39f9cd33 (patch)
treefca473e48f76928991a18ac68b9c8c80c369e126
parentREADME: fix outdated test instructions (diff)
downloadpkgcore-939c556d4acbe1d451fd7d336a6ed7bb39f9cd33.tar.gz
pkgcore-939c556d4acbe1d451fd7d336a6ed7bb39f9cd33.tar.bz2
pkgcore-939c556d4acbe1d451fd7d336a6ed7bb39f9cd33.zip
repository: shift args to docstring
Signed-off-by: Brian Harring <ferringb@gmail.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--src/pkgcore/repository/util.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pkgcore/repository/util.py b/src/pkgcore/repository/util.py
index 013c16bd..beeaf00a 100644
--- a/src/pkgcore/repository/util.py
+++ b/src/pkgcore/repository/util.py
@@ -13,19 +13,19 @@ from . import multiplex, prototype, virtual
class SimpleTree(prototype.tree):
- """Fake, in-memory repository.
-
- Args:
- cpv_dict (dict): CPVs to populate the repo with
- pkg_klass: class of packages in repo
- livefs (bool): regular repo if False, vdb if True
- frozen (bool): repo is modifiable if False, otherwise readonly
- repo_id (str): repo ID
- """
+ """in-memory repository used for testing or simple shims."""
def __init__(
self, cpv_dict, pkg_klass=None, livefs=False, frozen=True, repo_id=None
):
+ """
+ Args:
+ cpv_dict (dict): CPVs to populate the repo with
+ pkg_klass: class of packages in repo
+ livefs (bool): regular repo if False, vdb if True
+ frozen (bool): repo is modifiable if False, otherwise readonly
+ repo_id (str): repo ID
+ """
self.cpv_dict = cpv_dict
if pkg_klass is None:
pkg_klass = VersionedCPV