Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37704520
en ru br
ALT Linux repos
S:0.18.4-alt4
5.0: 0.7.15-alt2
4.1: 0.7.6-alt0.M41.2

Group :: Networking/Instant messaging
RPM: telepathy-gabble

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: telepathy-gabble-0.18.4-alt-console_py3.patch
Download


--- 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)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin