From 939c556d4acbe1d451fd7d336a6ed7bb39f9cd33 Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Mon, 20 Nov 2023 19:44:42 -0800 Subject: repository: shift args to docstring Signed-off-by: Brian Harring Signed-off-by: Arthur Zamarin --- src/pkgcore/repository/util.py | 18 +++++++++--------- 1 file 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 -- cgit v1.2.3-65-gdbad