--- a/runtime/PyroServer.py Tue Oct 02 15:57:26 2018 +0200
+++ b/runtime/PyroServer.py Wed Oct 03 00:05:32 2018 +0200
@@ -9,6 +9,8 @@
# See COPYING file for copyrights details.
+from __future__ import absolute_import
+from __future__ import print_function
import sys
import Pyro
@@ -16,6 +18,7 @@
import runtime
from runtime.ServicePublisher import ServicePublisher
+
class Server(object):
def __init__(self, servicename, ip_addr, port):
self.continueloop = True
@@ -49,8 +52,8 @@
# taking too small timeout value may cause
# unwanted diconnection when IDE is kept busy for long periods
self.daemon.setTimeout(60)
-
- pyro_obj=Pyro.core.ObjBase()
+
+ pyro_obj = Pyro.core.ObjBase()
pyro_obj.delegateTo(runtime.GetPLCObjectSingleton())
self.daemon.connect(pyro_obj, "PLCObject")
@@ -75,6 +78,3 @@
self.servicepublisher.UnRegisterService()
self.servicepublisher = None
self.daemon.shutdown(True)
-
-
-