Repository: beam
Updated Branches:
  refs/heads/master c63eb7b49 -> cf9d2211f


BEAM-1368: replaced usage of execfile() by exec(), which is the official 
recommendation for portability


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/949689ce
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/949689ce
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/949689ce

Branch: refs/heads/master
Commit: 949689ce5a67fecb36b1aac16ab2f39a4b4e03bc
Parents: c63eb7b
Author: Sergio Fernández <[email protected]>
Authored: Wed Feb 1 09:20:51 2017 +0100
Committer: Ahmet Altay <[email protected]>
Committed: Wed Feb 8 15:29:25 2017 -0800

----------------------------------------------------------------------
 sdks/python/setup.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/949689ce/sdks/python/setup.py
----------------------------------------------------------------------
diff --git a/sdks/python/setup.py b/sdks/python/setup.py
index 8a55d5b..aaa8a81 100644
--- a/sdks/python/setup.py
+++ b/sdks/python/setup.py
@@ -31,8 +31,7 @@ from pkg_resources import get_distribution, 
DistributionNotFound
 
 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'

Reply via email to