diff options
author | 2023-11-20 19:44:42 -0800 | |
---|---|---|
committer | 2023-11-24 17:17:21 +0200 | |
commit | 939c556d4acbe1d451fd7d336a6ed7bb39f9cd33 (patch) | |
tree | fca473e48f76928991a18ac68b9c8c80c369e126 | |
parent | README: fix outdated test instructions (diff) | |
download | pkgcore-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.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/pkgcore/repository/util.py b/src/pkgcore/repository/util.py index 013c16bd3..beeaf00ae 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 |