diff options
author | 2023-11-20 21:41:53 -0800 | |
---|---|---|
committer | 2023-12-03 07:18:39 +0200 | |
commit | bb7b8ec465060dfc754e9115c6e8a03e040272fd (patch) | |
tree | c2eddd805351a64eff9e116357a447b5a86ee3d6 | |
parent | pquery tests: convert to FakePkg for richer metadata tests (diff) | |
download | pkgcore-bb7b8ec465060dfc754e9115c6e8a03e040272fd.tar.gz pkgcore-bb7b8ec465060dfc754e9115c6e8a03e040272fd.tar.bz2 pkgcore-bb7b8ec465060dfc754e9115c6e8a03e040272fd.zip |
repo: Simplify SimpleTree signature
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | src/pkgcore/repository/util.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkgcore/repository/util.py b/src/pkgcore/repository/util.py index beeaf00a..8cc48547 100644 --- a/src/pkgcore/repository/util.py +++ b/src/pkgcore/repository/util.py @@ -16,7 +16,7 @@ class SimpleTree(prototype.tree): """in-memory repository used for testing or simple shims.""" def __init__( - self, cpv_dict, pkg_klass=None, livefs=False, frozen=True, repo_id=None + self, cpv_dict, pkg_klass=VersionedCPV, livefs=False, frozen=True, repo_id=None ): """ Args: @@ -27,8 +27,6 @@ class SimpleTree(prototype.tree): repo_id (str): repo ID """ self.cpv_dict = cpv_dict - if pkg_klass is None: - pkg_klass = VersionedCPV self.livefs = livefs self.repo_id = repo_id self.package_class = pkg_klass |