adding globals() to exec call for python3 compatibility

pull/255/head
Behzad Tabibian 10 years ago
parent 0a1763b6af
commit 4b4770280d
  1. 2
      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__

Loading…
Cancel
Save