connectors/WAMP/__init__.py
changeset 1739 ec153828ded2
parent 1736 7e61baa047f0
child 1740 b789b695b5c6
--- a/connectors/WAMP/__init__.py	Mon Aug 14 23:38:28 2017 +0300
+++ b/connectors/WAMP/__init__.py	Tue Aug 15 12:17:51 2017 +0300
@@ -52,10 +52,10 @@
         _WampSession = None
         print 'WAMP session left'
 
-PLCObjDefaults = { "StartPLC": False,
-                   "GetTraceVariables" : ("Broken",None),
-                   "GetPLCstatus" : ("Broken",None),
-                   "RemoteExec" : (-1, "RemoteExec script failed!")}
+PLCObjDefaults = { "StartPLC":          False,
+                   "GetTraceVariables": ("Broken", None),
+                   "GetPLCstatus":      ("Broken", None),
+                   "RemoteExec":        (-1, "RemoteExec script failed!")}
 
 
 def WAMP_connector_factory(uri, confnodesroot):
@@ -106,7 +106,7 @@
         wampfuncname = '.'.join((ID,funcname))
         def catcher_func(*args,**kwargs):
             global _WampSession
-            if _WampSession is not None :
+            if _WampSession is not None:
                 try:
                     return threads.blockingCallFromThread(
                         reactor, _WampSession.call, wampfuncname,
@@ -148,7 +148,7 @@
             return member
 
     # Try to get the proxy object
-    try :
+    try:
         return WampPLCObjectProxy()
     except Exception, msg:
         confnodesroot.logger.write_error(_("WAMP connection to '%s' failed.\n") % location)