Commit 4b477028 authored by Behzad Tabibian's avatar Behzad Tabibian

adding globals() to exec call for python3 compatibility

parent 0a1763b6
......@@ -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__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment