--- a/Beremiz_service.py Mon Oct 02 12:43:01 2017 +0300
+++ b/Beremiz_service.py Mon Oct 02 13:19:06 2017 +0300
@@ -510,7 +510,6 @@
def evaluator(tocall, *args, **kwargs):
if main_thread == currentThread():
# avoid dead lock if called from the wx mainloop
return default_evaluator(tocall, *args, **kwargs)
--- a/connectors/WAMP/__init__.py Mon Oct 02 12:43:01 2017 +0300
+++ b/connectors/WAMP/__init__.py Mon Oct 02 13:19:06 2017 +0300
@@ -44,13 +44,13 @@
class WampSession(wamp.ApplicationSession):
def onJoin(self, details):
- global _WampSession, _WampSessionEvent
print('WAMP session joined for :', self.config.extra["ID"])
def onLeave(self, details):
- global _WampSession, _WampSessionEvent
_WampSessionEvent.clear()
print('WAMP session left')
@@ -113,7 +113,6 @@
wampfuncname = '.'.join((ID, funcname))
def catcher_func(*args, **kwargs):
if _WampSession is not None:
return threads.blockingCallFromThread(
@@ -132,7 +131,7 @@
class WampPLCObjectProxy(object):
- global _WampSessionEvent, _WampConnection
Thread(target=ThreadProc).start()
@@ -143,7 +142,6 @@
raise Exception(_("WAMP connection timeout"))
_WampConnection.disconnect()
--- a/controls/DebugVariablePanel/DebugVariableViewer.py Mon Oct 02 12:43:01 2017 +0300
+++ b/controls/DebugVariablePanel/DebugVariableViewer.py Mon Oct 02 13:19:06 2017 +0300
@@ -83,7 +83,6 @@
Init global pens and brushes
HIGHLIGHT['DROP_PEN'] = wx.Pen(wx.Colour(0, 128, 255))
HIGHLIGHT['DROP_BRUSH'] = wx.Brush(wx.Colour(0, 128, 255, 128))
--- a/editors/Viewer.py Mon Oct 02 12:43:01 2017 +0300
+++ b/editors/Viewer.py Mon Oct 02 13:19:06 2017 +0300
@@ -810,7 +810,6 @@
def SetCurrentCursor(self, cursor):
if self.Mode != MODE_MOTION:
if self.CurrentCursor != cursor:
self.CurrentCursor = cursor
self.Editor.SetCursor(CURSORS[cursor])
--- a/runtime/WampClient.py Mon Oct 02 12:43:01 2017 +0300
+++ b/runtime/WampClient.py Mon Oct 02 13:19:06 2017 +0300
@@ -57,7 +57,6 @@
""" Get Callee or Subscriber corresponding to '.' spearated object path """
@@ -134,7 +133,6 @@
--- a/svgui/pyjs/lib/pyjslib.py Mon Oct 02 12:43:01 2017 +0300
+++ b/svgui/pyjs/lib/pyjslib.py Mon Oct 02 13:19:06 2017 +0300
@@ -598,7 +598,6 @@
def sort(self, compareFunc=None, keyFunc=None, reverse=False):
@@ -749,7 +748,6 @@
def sort(self, compareFunc=None, keyFunc=None, reverse=False):
--- a/svgui/pyjs/lib/sys.py Mon Oct 02 12:43:01 2017 +0300
+++ b/svgui/pyjs/lib/sys.py Mon Oct 02 13:19:06 2017 +0300
@@ -23,12 +23,10 @@
def addoverride(module_name, path):
overrides[module_name] = path
--- a/tests/tools/check_source.sh Mon Oct 02 12:43:01 2017 +0300
+++ b/tests/tools/check_source.sh Mon Oct 02 13:19:06 2017 +0300
@@ -214,6 +214,7 @@
enable=$enable,W0311 # (bad-indentation) Bad indentation. Found 16 spaces, expected 12
enable=$enable,W0101 # (unreachable) Unreachable code
enable=$enable,E0102 # (function-redefined) method already defined
+ enable=$enable,W0602 # (global-variable-not-assigned) Using global for 'X' but no assignment is done # enable=$enable,W0403 # relative import
# enable=$enable,W0622 # (redefined-builtin) Redefining built-in