From 4b4770280dc2aead50708b783825cf4d24b6d407 Mon Sep 17 00:00:00 2001 From: Behzad Tabibian Date: Tue, 28 Apr 2015 11:09:05 +0200 Subject: adding globals() to exec call for python3 compatibility --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index c18818e2..07cc56e7 100755 --- a/python/setup.py +++ b/python/setup.py @@ -52,7 +52,7 @@ def GetVersion(): """ with open(os.path.join('google', 'protobuf', '__init__.py')) as version_file: - exec(version_file.read()) + exec(version_file.read(),globals()) return __version__ -- cgit v1.2.3 From 2bf92b3be9d590b9a0d1884d8a3aa4f8ac4ca8bb Mon Sep 17 00:00:00 2001 From: Behzad Tabibian Date: Thu, 7 May 2015 19:04:56 +0200 Subject: mend --- python/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/setup.py b/python/setup.py index 07cc56e7..6da8be8e 100755 --- a/python/setup.py +++ b/python/setup.py @@ -52,7 +52,7 @@ def GetVersion(): """ with open(os.path.join('google', 'protobuf', '__init__.py')) as version_file: - exec(version_file.read(),globals()) + exec(version_file.read(), globals()) return __version__ -- cgit v1.2.3