From c8623aa92c99464cd2405d31c376fa3da844c3e4 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 18 Feb 2019 21:32:24 +0300 Subject: [PATCH] Style(setup): Fix flake8 F821 undefined name `execfile` under Python 3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8916f60..5ad9f59 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ versionpath = join(abspath(dirname(__file__)), 'mimedecode', '__version__.py') mimedecode_version = {} if sys.version_info[:2] == (2, 7): - execfile(versionpath, mimedecode_version) + execfile(versionpath, mimedecode_version) # noqa: F821 'execfile' Py3 elif sys.version_info >= (3, 4): exec(open(versionpath, 'rU').read(), mimedecode_version) -- 2.39.5