From 5253bcb1ff46b93c0d27ada81e40f556bcc627c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Fern=C3=A1ndez?= Date: Wed, 1 Feb 2017 09:20:51 +0100 Subject: [PATCH] BEAM-1368: replaced usage of execfile() by exec(), which is the official recommendation for portability --- sdks/python/setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdks/python/setup.py b/sdks/python/setup.py index e75a583717a5..0799238fd0c4 100644 --- a/sdks/python/setup.py +++ b/sdks/python/setup.py @@ -30,8 +30,7 @@ def get_version(): global_names = {} - execfile(os.path.normpath('./apache_beam/version.py'), - global_names) + exec(open(os.path.normpath('./apache_beam/version.py')).read(), global_names) return global_names['__version__'] PACKAGE_NAME = 'apache-beam-sdk'