From: Oleg Broytman Date: Mon, 18 Feb 2019 18:32:28 +0000 (+0300) Subject: Style(setup): Fix flake8 F821 undefined name `execfile` under Python 3 X-Git-Tag: 0.8.0~16 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=edce641cf3156fe3924a93325c46e6f5d976744d;p=ppu.git Style(setup): Fix flake8 F821 undefined name `execfile` under Python 3 --- diff --git a/setup.py b/setup.py index 5d31cb3..5a5bd72 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ versionpath = join(abspath(dirname(__file__)), 'ppu', '__version__.py') ppu_version = {} if sys.version_info[:2] == (2, 7): - execfile(versionpath, ppu_version) + execfile(versionpath, ppu_version) # noqa: F821 'execfile' Py3 elif sys.version_info >= (3, 4): exec(open(versionpath, 'rU').read(), ppu_version)