--- avahi-0.7/avahi-python/avahi-bookmarks.in.~1~ 2017-07-10 13:14:59.119370306 +0000 +++ avahi-0.7/avahi-python/avahi-bookmarks.in 2020-01-21 12:02:49.998355203 +0000 @@ -17,12 +17,17 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. +from __future__ import print_function import sys, getopt, os try: - import avahi, gobject, dbus -except ImportError: - print "Sorry, to use this tool you need to install Avahi and python-dbus." + import gi + gi.require_version('Gtk', '3.0') + from gi.repository import GObject + + import avahi, dbus +except: + print("Sorry, to use this tool you need to install Avahi and python-dbus.") sys.exit(1) try: @@ -95,7 +100,7 @@ else: t += '