# HG changeset patch # User Andrey Skvortsov # Date 1539156387 -10800 # Node ID 75a274023970140c448274ad691b4e9b5d5ffb37 # Parent b13f021c68a53819385fdf375f262a09fe2edf5a python3 support: pylint, W1606 # (execfile-builtin) execfile built-in referenced diff -r b13f021c68a5 -r 75a274023970 Beremiz.py --- 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 diff -r b13f021c68a5 -r 75a274023970 Beremiz_service.py --- 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 diff -r b13f021c68a5 -r 75a274023970 ConfigTreeNode.py --- 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 diff -r b13f021c68a5 -r 75a274023970 runtime/PLCObject.py --- 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 diff -r b13f021c68a5 -r 75a274023970 tests/tools/check_source.sh --- 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=