Skip to content

Commit

Permalink
use in instead of has_key
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Jan 27, 2023
1 parent 3227246 commit fa34950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roseus/cmake/get_all_depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fa34950

Please sign in to comment.