From fa349501579eb3975da89ecd6797506483411a19 Mon Sep 17 00:00:00 2001 From: Shingo Kitagawa Date: Fri, 27 Jan 2023 21:14:43 +0900 Subject: [PATCH] use in instead of has_key --- roseus/cmake/get_all_depends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roseus/cmake/get_all_depends.py b/roseus/cmake/get_all_depends.py index e42b229f7..6f007bc57 100755 --- a/roseus/cmake/get_all_depends.py +++ b/roseus/cmake/get_all_depends.py @@ -48,7 +48,7 @@ def get_pkg_map(): for ws in workspaces.get_spaces(): pkgs = packages.find_packages(ws) for pkg in pkgs.values(): - if not pkg_map.has_key(pkg.name): + if pkg.name not in pkg_map: pkg_map[pkg.name] = pkg return pkg_map geneus.geneus_main.pkg_map = get_pkg_map()