non significant print syntax change. ready for py3.
authorEdouard Tisserant
Tue, 09 Jan 2018 14:42:23 +0100
changeset 1890 916099cb8d22
parent 1889 baff54446535
child 1891 66043243c246
non significant print syntax change. ready for py3.
runtime/WampClient.py
--- a/runtime/WampClient.py	Tue Jan 09 14:38:45 2018 +0100
+++ b/runtime/WampClient.py	Tue Jan 09 14:42:23 2018 +0100
@@ -85,17 +85,17 @@
     def onLeave(self, details):
         global _WampSession
         _WampSession = None
-        print('WAMP session left')
+        print(_('WAMP session left'))
 
 
 class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
     def clientConnectionFailed(self, connector, reason):
-        print("WAMP Client connection failed .. retrying ..")
         self.retry(connector)
+        print(_("WAMP Client connection failed .. retrying .."))
 
     def clientConnectionLost(self, connector, reason):
-        print("WAMP Client connection lost .. retrying ..")
         self.retry(connector)
+        print(_("WAMP Client connection lost .. retrying .."))
 
 
 def LoadWampClientConf(wampconf):
@@ -129,7 +129,7 @@
 
     # start the client from a Twisted endpoint
     conn = connectWS(transport_factory)
-    print("WAMP client connecting to :", WSClientConf["url"])
+    print(_("WAMP client connecting to :"), _WSClientConf["url"])
     return conn