# HG changeset patch # User Nsukami Patrick # Date 1574424412 0 # Node ID 842939e69f3a774fa50819de6a02f6a9f51a5def # Parent ea8801f10a7207ee87dbe8e0a1b359bff00add71 [pkginfo] Remove unused parameter To retrieve cube dependencies or cube requirements, no more need to pass the 'oldkey' parameter to _cube_deps function as this parameter is unused. diff -r ea8801f10a72 -r 842939e69f3a cubicweb/cwconfig.py --- a/cubicweb/cwconfig.py Fri Nov 29 15:32:31 2019 +0100 +++ b/cubicweb/cwconfig.py Fri Nov 22 12:06:52 2019 +0000 @@ -498,7 +498,7 @@ return Version(version) @classmethod - def _cube_deps(cls, cube, key, oldkey): + def _cube_deps(cls, cube, key): """return cubicweb cubes used by the given cube""" pkginfo = cls.cube_pkginfo(cube) try: @@ -536,12 +536,12 @@ @classmethod def cube_dependencies(cls, cube): """return cubicweb cubes used by the given cube""" - return cls._cube_deps(cube, '__depends_cubes__', '__use__') + return cls._cube_deps(cube, '__depends_cubes__') @classmethod def cube_recommends(cls, cube): """return cubicweb cubes recommended by the given cube""" - return cls._cube_deps(cube, '__recommends_cubes__', '__recommend__') + return cls._cube_deps(cube, '__recommends_cubes__') @classmethod def expand_cubes(cls, cubes, with_recommends=False):