Attempt to make BitBuket's version of pep8 and pylint happy.
authorEdouard Tisserant
Tue, 20 Feb 2018 14:46:12 +0100
changeset 1955 a1ea9856013a
parent 1954 b113d7de4899
child 1956 2b90514edfbf
Attempt to make BitBuket's version of pep8 and pylint happy.
Beremiz_service.py
runtime/PLCObject.py
runtime/WampClient.py
--- a/Beremiz_service.py	Tue Feb 20 14:24:30 2018 +0100
+++ b/Beremiz_service.py	Tue Feb 20 14:46:12 2018 +0100
@@ -110,9 +110,9 @@
     elif o == "-s":
         wampsecret = None if a == "off" else a
     elif o == "-e":
-        l = list(os.path.split(os.path.realpath(a)))
-        l.reverse()
-        extensions.append(l)
+        fnameanddirname = list(os.path.split(os.path.realpath(a)))
+        fnameanddirname.reverse()
+        extensions.append(fnameanddirname)
     else:
         usage()
         sys.exit()
@@ -555,6 +555,7 @@
 def LogException(*exp):
     LogMessageAndException("", exp)
 
+
 sys.excepthook = LogException
 
 
--- a/runtime/PLCObject.py	Tue Feb 20 14:24:30 2018 +0100
+++ b/runtime/PLCObject.py	Tue Feb 20 14:46:12 2018 +0100
@@ -25,7 +25,7 @@
 from __future__ import absolute_import
 from threading import Timer, Thread, Lock, Semaphore, Event
 import ctypes
-import _ctypes
+import _ctypes  # pylint: disable=wrong-import-order
 import os
 import sys
 import traceback
--- a/runtime/WampClient.py	Tue Feb 20 14:24:30 2018 +0100
+++ b/runtime/WampClient.py	Tue Feb 20 14:46:12 2018 +0100
@@ -93,7 +93,7 @@
         ID = self.config.extra["ID"]
         print('WAMP session joined by :', ID)
         for name in ExposedCalls:
-            regoption = types.RegisterOptions(u'exact', u'last', None, None)
+            regoption = types.RegisterOptions(u'exact', u'last')
             yield self.register(GetCallee(name), u'.'.join((ID, name)), regoption)
 
         for name in SubscribedEvents: