--- plugins/telepathy-gabble-xmpp-console 2016-11-15 12:03:24.000000000 +0300 +++ plugins/telepathy-gabble-xmpp-console.py3 2019-10-02 16:11:54.151300882 +0300 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/python3 # vim: set fileencoding=utf-8 sts=4 sw=4 et : """ The world's worst XMPP console user interface. @@ -313,12 +313,12 @@ CONN_FUTURE_IFACE, None) try: sidecar_path, _ = conn_future_proxy.EnsureSidecar('(s)', CONSOLE_IFACE) - except Exception, e: - print """ + except Exception as e: + print(""" Couldn't connect to the XMPP console interface on '%(connection_bus_name)s': %(e)s Check that it's a running Jabber connection, and that you have the console -plugin installed.""" % locals() +plugin installed.""" % locals()) raise SystemExit(2) @@ -357,7 +357,7 @@ ACCOUNT_IFACE = 'org.freedesktop.Telepathy.Account' def usage(): - print """ + print(""" Usage: %(arg0)s gabble/jabber/blahblah @@ -367,7 +367,7 @@ List connection bus names using `qdbus | grep gabble`. """ % { 'arg0': sys.argv[0], 'prefix': GABBLE_PREFIX, - } + }) raise SystemExit(1) if __name__ == '__main__': @@ -385,7 +385,7 @@ ACCOUNT_IFACE, None) path = account_proxy.get_cached_property('Connection').get_string() if path == '/': - print "%s is not online" % thing + print("%s is not online" % thing) raise SystemExit(1) else: thing = nameify(path)