Browse Source

Python 3 removed dict.has_key(), use in operator

Should solve #11
pull/12/head
Daniel Schömer 8 years ago
committed by GitHub
parent
commit
40363599d0
  1. 2
      src/xdgmenumaker

2
src/xdgmenumaker

@ -366,7 +366,7 @@ def clean_up_categories(categories):
} }
category = other category = other
for candidate in categories: for candidate in categories:
if category_menus.has_key(candidate): if candidate in category_menus:
category = category_menus.get(candidate) category = category_menus.get(candidate)
break break
return category return category

Loading…
Cancel
Save