diff --git a/src/xdgmenumaker b/src/xdgmenumaker index 9a5a179..5c4e8a8 100755 --- a/src/xdgmenumaker +++ b/src/xdgmenumaker @@ -366,7 +366,7 @@ def clean_up_categories(categories): } category = other for candidate in categories: - if category_menus.has_key(candidate): + if candidate in category_menus: category = category_menus.get(candidate) break return category