Commit 35567c16 authored by cclauss's avatar cclauss Committed by Jie Luo

global __version__ In setup.py (#4753)

This change helps both humans and linters to understand the unusual method of instantiating this global variable.
parent fc243c15
......@@ -44,6 +44,7 @@ def GetVersion():
with open(os.path.join('google', 'protobuf', '__init__.py')) as version_file:
exec(version_file.read(), globals())
global __version__
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