From 40363599d0c22db08625bf777da21ac056f2808e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=B6mer?= Date: Wed, 19 Jul 2017 20:07:52 +0200 Subject: [PATCH] Python 3 removed dict.has_key(), use in operator Should solve #11 --- src/xdgmenumaker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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