# HG changeset patch # User Edouard Tisserant # Date 1519134372 -3600 # Node ID a1ea9856013a219e73d96c46273d7dd6d22ee968 # Parent b113d7de48991f0a71562f5a56057fe4303766be Attempt to make BitBuket's version of pep8 and pylint happy. diff -r b113d7de4899 -r a1ea9856013a Beremiz_service.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 diff -r b113d7de4899 -r a1ea9856013a runtime/PLCObject.py --- 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 diff -r b113d7de4899 -r a1ea9856013a runtime/WampClient.py --- 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: