소스 검색

adding globals() to exec call for python3 compatibility

Behzad Tabibian 10 년 전
부모
커밋
4b4770280d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      python/setup.py

+ 1 - 1
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__