Merge pull request #255 from btabibian/master

adding globals() to exec call for python3 compatibility
pull/360/head
Joshua Haberman 10 years ago
commit cd141089a1
  1. 2
      python/setup.py

@ -53,7 +53,7 @@ def GetVersion():
protobuf library may be loaded instead."""
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