python3 support: pylint, W1606 # (execfile-builtin) execfile built-in referenced
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 10 Oct 2018 10:26:27 +0300
changeset 2443 75a274023970
parent 2442 b13f021c68a5
child 2444 235f847be37e
python3 support: pylint, W1606 # (execfile-builtin) execfile built-in referenced
Beremiz.py
Beremiz_service.py
ConfigTreeNode.py
runtime/PLCObject.py
tests/tools/check_source.sh
--- 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=