python3 support: pylint, W1606 # (execfile-builtin) execfile built-in referenced
--- a/Beremiz.py Tue Oct 09 14:03:44 2018 +0300
+++ b/Beremiz.py Wed Oct 10 10:26:27 2018 +0300
@@ -28,6 +28,7 @@
import os
import sys
import getopt
+from past.builtins import execfile
import wx
from wx.lib.agw.advancedsplash import AdvancedSplash, AS_NOTIMEOUT, AS_CENTER_ON_SCREEN
--- a/Beremiz_service.py Tue Oct 09 14:03:44 2018 +0300
+++ b/Beremiz_service.py Wed Oct 10 10:26:27 2018 +0300
@@ -32,6 +32,7 @@
import threading
from threading import Thread, Semaphore, Lock
import traceback
+from past.builtins import execfile
from six.moves import builtins
import Pyro
import Pyro.core as pyro
--- a/ConfigTreeNode.py Tue Oct 09 14:03:44 2018 +0300
+++ b/ConfigTreeNode.py Wed Oct 10 10:26:27 2018 +0300
@@ -37,6 +37,7 @@
import types
import shutil
from builtins import str as text
+from past.builtins import execfile
from lxml import etree
--- a/runtime/PLCObject.py Tue Oct 09 14:03:44 2018 +0300
+++ b/runtime/PLCObject.py Wed Oct 10 10:26:27 2018 +0300
@@ -30,6 +30,7 @@
import traceback
from time import time
import _ctypes # pylint: disable=wrong-import-order
+from past.builtins import execfile
import Pyro.core as pyro
import six
from six.moves import _thread, xrange
--- a/tests/tools/check_source.sh Tue Oct 09 14:03:44 2018 +0300
+++ b/tests/tools/check_source.sh Wed Oct 10 10:26:27 2018 +0300
@@ -362,6 +362,7 @@
enable=$enable,W1601 # (apply-builtin) apply built-in referenced
enable=$enable,W1659 # (xreadlines-attribute) Accessing a removed xreadlines attribute
enable=$enable,W1607 # (file-builtin) file built-in referenced
+ enable=$enable,W1606 # (execfile-builtin) execfile built-in referenced
# enable=
options=