Browse Source

Merge pull request #12 from quatauta/dict-has-key-in

Python 3 removed dict.has_key(), use in operator
pull/10/merge
George Vlahavas 8 years ago
committed by GitHub
parent
commit
dcc48c6611
  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