[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.
--- 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):