Commit afeca47b authored by Vitezslav Humpa's avatar Vitezslav Humpa
Browse files

utils: fix python3 incompatibility with gnome-shell super menu items

and special characters
parent bd14f442
Pipeline #32571984 failed with stages
in 0 seconds
......@@ -391,7 +391,7 @@ class GnomeShell(object): # pragma: no cover
menu_items = self.getApplicationMenuList(search_by_item)
menu_items = self.getApplicationMenuList(item)
if any(ord(x) > 127 for x in item):
if sys.version_info.major == 2 and any(ord(x) > 127 for x in item):
item = item.encode('utf-8')
for node in menu_items:
if == item:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment